Skip to content

Update Github actions #7

Update Github actions

Update Github actions #7

Workflow file for this run

name: Checkshell
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install shellcheck
run: sudo apt-get install shellcheck -y
# Lint check
- name: Check scripts
run: find ${GITHUB_WORKSPACE} \( -name "*.sh" -o -name "*.bash" \) -type f -print0 | xargs -0 shellcheck -x --exclude=SC1090,SC1091
- name: Check rc
run: find ${GITHUB_WORKSPACE} \( -name ".bashrc" -o -name ".profile" -o -name ".bash_profile" \) -type f -print0 | xargs -0 shellcheck -x --exclude=SC2148,SC1090