ci: Add reviewdog - Automated shellcheck in github action for PRs (no automated repair)
This commit is contained in:
parent
96ba1f8f9b
commit
6418593dfa
|
@ -0,0 +1,30 @@
|
|||
--- # reviewdog
|
||||
name: 'Run shellcheck with reviewdog'
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
shellcheck:
|
||||
permissions:
|
||||
checks: write
|
||||
contents: read
|
||||
pull-requests: write
|
||||
name: 'Run shellcheck with reviewdog'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: haya14busa/action-cond@v1
|
||||
id: reporter
|
||||
with:
|
||||
cond: ${{ github.event_name == 'pull_request' }}
|
||||
- uses: reviewdog/action-shellcheck@v1
|
||||
with:
|
||||
reporter: ${{ steps.reporter.outputs.value }}
|
||||
level: error
|
||||
github_token: ${{ secrets.github_token }}
|
||||
pattern: |
|
||||
quickget
|
||||
quickemu
|
Loading…
Reference in New Issue