Update shellcheck.yml

This commit is contained in:
CanbiZ 2025-01-14 14:33:32 +01:00 committed by GitHub
parent 4c13164ad3
commit 0f1eea7f09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,6 +34,7 @@ jobs:
env: env:
INPUT_VERSION: "v0.10.0" INPUT_VERSION: "v0.10.0"
run: | run: |
set -euo pipefail
if [[ "${{ runner.os }}" == "macOS" ]]; then if [[ "${{ runner.os }}" == "macOS" ]]; then
osvariant="darwin" osvariant="darwin"
else else
@ -41,10 +42,10 @@ jobs:
fi fi
baseurl="https://github.com/koalaman/shellcheck/releases/download" baseurl="https://github.com/koalaman/shellcheck/releases/download"
curl -Lso "${{ github.action_path }}/sc.tar.xz" \ curl -Lso "${{ github.action_path }}/sc.tar.xz" \
"${baseurl}/${INPUT_VERSION}/shellcheck-${INPUT_VERSION}.${osvariant}.x86_64.tar.xz" "${baseurl}/${INPUT_VERSION}/shellcheck-${INPUT_VERSION}.${osvariant}.x86_64.tar.xz"
mkdir -p "${{ github.action_path }}/shellcheck-${INPUT_VERSION}"
tar -xf "${{ github.action_path }}/sc.tar.xz" -C "${{ github.action_path }}" tar -xf "${{ github.action_path }}/sc.tar.xz" -C "${{ github.action_path }}"
mv "${{ github.action_path }}/shellcheck-${INPUT_VERSION}/shellcheck" \ mv "${{ github.action_path }}/shellcheck-${INPUT_VERSION}/shellcheck" \
"${{ github.action_path }}/shellcheck" "${{ github.action_path }}/shellcheck"