diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index 531d072de4..d35ef555e5 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -80,7 +80,7 @@ jobs: - name: Run go-sumtype run: bin/go-sumtype ./... - - name: Run golangci-lint + - name: Run required linters uses: reviewdog/action-golangci-lint@v2 with: github_token: ${{ secrets.ROBOT_TOKEN || secrets.GITHUB_TOKEN }} @@ -108,7 +108,8 @@ jobs: echo "$out" fi - - name: Run optional checks/linters + - name: Run optional linters + if: github.event_name == 'pull_request' uses: reviewdog/action-golangci-lint@v2 with: github_token: ${{ secrets.ROBOT_TOKEN || secrets.GITHUB_TOKEN }}