24 lines
594 B
YAML
24 lines
594 B
YAML
name: reviewdog
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
jobs:
|
|
shellcheck:
|
|
name: runner / shellcheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: haya14busa/action-cond@v1
|
|
id: reporter
|
|
with:
|
|
cond: ${{ github.event_name == 'pull_request' }}
|
|
if_true: "github-pr-review"
|
|
if_false: "github-check"
|
|
- uses: reviewdog/action-shellcheck@v1
|
|
with:
|
|
github_token: ${{ secrets.github_token }}
|
|
reporter: ${{ steps.reporter.outputs.value }}
|
|
level: warning
|