Merge pull request #81 from thomasmerz/fix_typo #141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Shellcheck Lint | |
on: | |
push: | |
branches: | |
# Run workflow on every push | |
- '**' # matches every branch | |
pull_request: | |
branches: | |
# Run workflow on every push | |
- '**' # matches every branch | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Shellcheck Lint | |
# This job runs on Linux | |
runs-on: ubuntu-latest | |
steps: | |
# Required to access files of this repository | |
- uses: actions/checkout@v4 | |
# Download Shellcheck and add it to the workflow path | |
- name: Download Shellcheck | |
run: | | |
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz" | tar -xJv | |
chmod +x shellcheck-stable/shellcheck | |
# Verify that Shellcheck can be executed | |
- name: Check Shellcheck Version | |
run: | | |
shellcheck-stable/shellcheck --version | |
# Run Shellcheck on repository | |
- name: Run Shellcheck | |
run: | | |
set +e | |
shellcheck-stable/shellcheck --color=always --severity=warning --exclude=SC1090,SC1091 pihole_adlist_tool | |