Skip to content

Commit 5cda426

Browse files
authored
fix: use elevated privileges to download + make tool executable
1 parent 9277913 commit 5cda426

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ runs:
5858
else
5959
download_url="https://github.com/codacy/git-version/releases/download/${{ inputs.tool-version }}/git-version"
6060
fi
61-
curl -Ls "$download_url" > "${{ inputs.tool-installation-path }}/git-version"
62-
chmod +x "${{ inputs.tool-installation-path }}/git-version"
61+
sudo wget "$download_url" -O "${{ inputs.tool-installation-path }}/git-version"
62+
sudo chmod +x "${{ inputs.tool-installation-path }}/git-version"
6363
- id: previous-version
6464
shell: bash
6565
run: |

0 commit comments

Comments
 (0)