mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-12-26 20:00:55 +00:00
Install shellcheck from github releases (#147)
* Install shellcheck from github releases
This commit is contained in:
parent
d2b2b61afc
commit
c770ec4191
1 changed files with 10 additions and 0 deletions
10
.github/workflows/shellcheck.yml
vendored
10
.github/workflows/shellcheck.yml
vendored
|
@ -16,6 +16,16 @@ jobs:
|
|||
- name: Check out the codebase.
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install shellcheck from GitHub releases
|
||||
run: |
|
||||
sudo curl -L https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.$(uname -s).$(uname -m).tar.xz -o shellcheck.tar.xz
|
||||
sudo tar -xvf shellcheck.tar.xz
|
||||
sudo mv shellcheck-v${SHELLCHECK_VERSION}/shellcheck /usr/local/bin/shellcheck
|
||||
sudo chmod 755 /usr/local/bin/shellcheck
|
||||
shellcheck --version
|
||||
env:
|
||||
SHELLCHECK_VERSION: 0.7.2
|
||||
|
||||
- name: Shellcheck!
|
||||
run: |
|
||||
shellcheck migrate2rocky/migrate2rocky.sh
|
||||
|
|
Loading…
Reference in a new issue