Skip to content

Commit d00ad3d

Browse files
committed
test: always use latest github shellcheck artifact
1 parent b0073be commit d00ad3d

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/actions/install-shellcheck/action.yaml

+11-8
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@ runs:
55
steps:
66
- uses: awalsh128/cache-apt-pkgs-action@latest
77
if: runner.os == 'Linux'
8-
with:
9-
packages: shellcheck
10-
version: 1.0
8+
run: |
9+
gh release download -R koalaman/shellcheck -p 'shellcheck-v*.linux.x86_64.tar.xz' -O shellcheck-latest.tar.xz
10+
tar -xvf shellcheck-latest.tar.xz
11+
chmod +x ./shellcheck
12+
echo ${{github.workspace}} >> "$GITHUB_PATH"
13+
export PATH="$PATH":"$(pwd)"
1114
- name: install shellcheck -- macOS
1215
shell: bash
1316
if: runner.os == 'macOS'
14-
run: brew install shellcheck
17+
run: |
18+
gh release download -R koalaman/shellcheck -p 'shellcheck-v*.darwin.aarch64.tar.xz' -O shellcheck-latest.tar.xz
19+
tar -xvf shellcheck-latest.tar.xz
20+
chmod +x ./shellcheck
21+
echo ${{github.workspace}} >> "$GITHUB_PATH"
1522
- name: install shellcheck -- Windows
1623
if: runner.os == 'Windows'
1724
shell: powershell
1825
run: |
1926
gh release download -R koalaman/shellcheck -p 'shellcheck-v*.zip' -O shellcheck-latest.zip
2027
7z x shellcheck-latest.zip
2128
Add-Content $env:GITHUB_PATH "$(Get-Location).Path"
22-
- name: test for shellcheck - Windows
23-
shell: powershell
24-
if: runner.os == 'Windows'
25-
run: where.exe shellcheck

0 commit comments

Comments
 (0)