File tree 1 file changed +11
-8
lines changed
.github/actions/install-shellcheck
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 5
5
steps :
6
6
- uses : awalsh128/cache-apt-pkgs-action@latest
7
7
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)"
11
14
- name : install shellcheck -- macOS
12
15
shell : bash
13
16
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"
15
22
- name : install shellcheck -- Windows
16
23
if : runner.os == 'Windows'
17
24
shell : powershell
18
25
run : |
19
26
gh release download -R koalaman/shellcheck -p 'shellcheck-v*.zip' -O shellcheck-latest.zip
20
27
7z x shellcheck-latest.zip
21
28
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
You can’t perform that action at this time.
0 commit comments