Last active
October 21, 2022 13:34
-
-
Save PortalMario/651301931ee645e518eaf272cb617850 to your computer and use it in GitHub Desktop.
ShellCheck Linter for Pull Requests targeting main. Files: *.sh , scripts/*.sh
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
#.github/workflows/ | |
name: "Lint Pull Requests targeting main" | |
run-name: "${{ github.actor }} Pull Request: ${{ github.base_ref }} <- ${{ github.head_ref }}" | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
shellcheck-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- run: shellcheck scripts/*.sh | |
- run: shellcheck *.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment