Merge pull request #4937 from kolyshkin/lint-extra

ci: only run lint-extra job on PRs to main
This commit is contained in:
lfbzhm
2025-10-16 08:58:04 +08:00
committed by GitHub
+2 -2
View File
@@ -42,9 +42,9 @@ jobs:
- uses: golangci/golangci-lint-action@v8
with:
version: v2.5
# Extra linters, only checking new code from a pull request.
# Extra linters, only checking new code from a pull request to main.
- name: lint-extra
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.base_ref == 'main'
run: |
golangci-lint run --config .golangci-extra.yml --new-from-rev=HEAD~1