Skip to content

Instantly share code, notes, and snippets.

@PortalMario
Last active October 21, 2022 13:34
Show Gist options
  • Save PortalMario/651301931ee645e518eaf272cb617850 to your computer and use it in GitHub Desktop.
Save PortalMario/651301931ee645e518eaf272cb617850 to your computer and use it in GitHub Desktop.
ShellCheck Linter for Pull Requests targeting main. Files: *.sh , scripts/*.sh
#.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