mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-28 10:50:04 +00:00
Update shellcheck.yml
This commit is contained in:
parent
4c13164ad3
commit
0f1eea7f09
7
.github/workflows/shellcheck.yml
vendored
7
.github/workflows/shellcheck.yml
vendored
@ -34,17 +34,18 @@ 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
|
||||||
osvariant="linux"
|
osvariant="linux"
|
||||||
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user