Skip to content

Commit

Permalink
WIP: test using pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Jan 4, 2024
1 parent 0edfed7 commit 6fb7914
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docker-style/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,21 @@ runs:
run: |
brew install hadolint
- name: Run Hadolint
working-directory: ${{ inputs.directory }}
shell: bash
run: |
hadolint Dockerfile
# # Workaround used because option "work-directory" cannot be used with "uses", it only works with the key-word "run".
# - name: Move to specific directory
# - name: Run Hadolint
# working-directory: ${{ inputs.directory }}
# shell: bash
# run: |
# cd ${{ github.workspace }}/${{ inputs.directory }}
# hadolint Dockerfile
# Workaround used because option "work-directory" cannot be used with "uses", it only works with the key-word "run".
- name: Move to specific directory
shell: bash
run: |
cd ${{ github.workspace }}/${{ inputs.directory }}
# - name: Run Hadolint
# uses: hadolint/[email protected]
# env:
# HADOLINT_RECURSIVE: "${{ inputs.recursive }}"
# with:
# dockerfile: "Dockerfile"
# recursive: ${{ inputs.recursive }}
- name: Run Hadolint
uses: hadolint/[email protected]
env:
HADOLINT_RECURSIVE: "${{ inputs.recursive }}"
with:
dockerfile: "**/Dockerfile"
recursive: ${{ inputs.recursive }}

0 comments on commit 6fb7914

Please sign in to comment.