on: [push] - reviewdog this is not a PullRequest build.
r10r opened this issue · comments
Ruben Jenster commented
Hi, how can this action be run on other events than pull_request
?
Rubens-MBP:crc16 ruben$ cat .github/workflows/reviewdog.yaml
name: reviewdog
on: [push, pull_request]
jobs:
golangci-lint:
name: runner / golangci-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
golangci_lint_flags: "--enable-all --exclude-use-default=false"
Ruben Jenster commented
Ok I found it myself. Need to set reviewdog_flags: "--reporter=github-check"
name: reviewdog
on: [push, pull_request]
jobs:
golangci-lint:
name: runner / golangci-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
golangci_lint_flags: "--enable-all --exclude-use-default=false"
reviewdog_flags: "--reporter=github-check"