From 72236b64dfe402e6e7f98bda80c8ef237baff0d4 Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Sat, 3 Feb 2024 00:19:35 +0100 Subject: [PATCH] REFACT: run hadolint-gh-action multiple times Note: this is now possible since https://github.com/jbergstroem/hadolint-gh-action/pull/135 got merged and released. --- code-style/action.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/code-style/action.yml b/code-style/action.yml index 1588c064b..5edcb17fc 100644 --- a/code-style/action.yml +++ b/code-style/action.yml @@ -99,16 +99,13 @@ runs: recursive: ${{ inputs.docker-recursive }} error-level: ${{ inputs.docker-error-level }} - # FIXME: Currently the action cannot work with multiple directory - # because of a bug, see - # https://github.com/jbergstroem/hadolint-gh-action/pull/135 - # - name: "Run Dockerfile linting in '.devcontainer' directory" - # if: ${{ inputs.docker-lint == 'true' }} - # uses: ansys/actions/docker-style@feat/lint_dockerfile - # with: - # directory: .devcontainer - # recursive: ${{ inputs.docker-recursive }} - # error-level: ${{ inputs.docker-error-level }} + - name: "Run Dockerfile linting in '.devcontainer' directory" + if: ${{ inputs.docker-lint == 'true' }} + uses: ansys/actions/docker-style@feat/lint_dockerfile + with: + directory: .devcontainer + recursive: ${{ inputs.docker-recursive }} + error-level: ${{ inputs.docker-error-level }} # ------------------------------------------------------------------------