Skip to content

Commit

Permalink
Run optional linters only for pull requests (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov authored Oct 4, 2022
1 parent 49a4a13 commit dcaf639
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit dcaf639

Please sign in to comment.