Skip to content

Commit

Permalink
CI: add working-directory workaround
Browse files Browse the repository at this point in the history
Note: option 'work-directory' cannot be used with 'uses', it only
works with the key-word 'run'.
  • Loading branch information
SMoraisAnsys committed Jan 4, 2024
1 parent effa692 commit 05b15cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker-style/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,16 @@ runs:
exit 1
fi
# 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 }}
working-directory: ${{ inputs.directory }}

0 comments on commit 05b15cf

Please sign in to comment.