Use @main for checkout action. #24
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: shell lint | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'mkcert' | |
- 'bash_completion' | |
- '.shellcheckrc' | |
- '.github/workflows/shellcheck.yml' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'mkcert' | |
- 'bash_completion' | |
- '.shellcheckrc' | |
- '.github/workflows/shellcheck.yml' | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Run shell linter | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Install packages | |
run: | | |
sudo apt install shellcheck | |
- name: Run shellcheck | |
run: | | |
shellcheck mkcert bash_completion |