Skip to content

Commit 2d103db

Browse files
committed
ci: Fix reviewdog run for pushes to main
1 parent 470a808 commit 2d103db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141141
run: |
142142
${{ github.workspace }}/hack/tools/golangci-lint-kube-api-linter run --config=${{ github.workspace }}/.golangci.yml --output.text.path=stdout ./... | \
143-
devbox run -- reviewdog -f=golangci-lint -reporter=github-pr-review --fail-level=any
143+
devbox run -- reviewdog -f=golangci-lint --fail-level=any ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && '-reporter=github-check --filter-mode=nofilter' || '-reporter=github-pr-review --filter-mode=added' }}
144144
working-directory: ${{ matrix.module }}
145145

146146
lint-gha:

0 commit comments

Comments
 (0)