Bump actions/checkout from 4.2.1 to 4.2.2 #56
Workflow file for this run
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: Linting (Shellcheck) | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
# only run these if markdown files are updated | |
jobs: | |
shellcheck: | |
name: Run shellcheck against shell scripts | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }} | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- name: Pull koalaman/shellcheck:stable Image | |
run: docker pull koalaman/shellcheck:stable | |
- name: Run Shellcheck against shell scripts | |
run: docker run --rm -i -v "$PWD:/mnt" koalaman/shellcheck:stable $(find . -type f -exec grep -m1 -l -E '^#!.*sh.*' {} \; | grep -v '/.git/') |