Skip to content

Commit

Permalink
fix: no error if bin directory exists
Browse files Browse the repository at this point in the history
Problem
When one wants to use hadolint-gh-action multiple times, an error is raised because the bin directory already exists, see jbergstroem#134

Solution
Use option -p of mkdir
  • Loading branch information
SMoraisAnsys authored Jan 23, 2024
1 parent 624871f commit a96fbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ runs:
shell: bash
run: |
echo "::debug::Downloading Hadolint ${{ inputs.version }}"
mkdir ${{ github.action_path }}/bin
mkdir -p ${{ github.action_path }}/bin
curl -L -s -o ${{ github.action_path }}/bin/hadolint \
"https://github.com/hadolint/hadolint/releases/download/v${{ inputs.version }}/hadolint-Linux-x86_64"
chmod +x ${{ github.action_path }}/bin/hadolint
Expand Down

0 comments on commit a96fbbc

Please sign in to comment.