mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-12-28 04:40:56 +00:00
34 lines
989 B
YAML
34 lines
989 B
YAML
---
|
|
name: shellcheck
|
|
'on':
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
- cron: '0 1 * * *'
|
|
|
|
jobs:
|
|
|
|
shellcheck:
|
|
name: shellcheck
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- 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
|
|
shellcheck migrate2rocky/migrate2rocky9.sh
|
|
shellcheck mirror/mirrorsync.sh
|
|
shellcheck getsrc/getsrc.sh
|