Skip to content

Commit d34ea2b

Browse files
authored
Merge pull request #4937 from kolyshkin/lint-extra
ci: only run lint-extra job on PRs to main
2 parents ef90082 + 1c4dba6 commit d34ea2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/validate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
- uses: golangci/golangci-lint-action@v8
4343
with:
4444
version: v2.5
45-
# Extra linters, only checking new code from a pull request.
45+
# Extra linters, only checking new code from a pull request to main.
4646
- name: lint-extra
47-
if: github.event_name == 'pull_request'
47+
if: github.event_name == 'pull_request' && github.base_ref == 'main'
4848
run: |
4949
golangci-lint run --config .golangci-extra.yml --new-from-rev=HEAD~1
5050

0 commit comments

Comments
 (0)