Skip to content

Commit 9669aac

Browse files
committed
Apply goheader fix from default branch
1 parent 9d3b8c5 commit 9669aac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/go.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ jobs:
4343
- run: git diff --exit-code
4444

4545
- name: goheader
46+
if: ${{ github.event_name == 'pull_request' }}
4647
# The goheader linter is only enabled in the CI so that it runs only on modified or new files
4748
# (see only-new-issues: true). It is disabled in .golangci.yml because
4849
# golangci-lint running locally is not aware of new/modified files compared to the base
4950
# commit of a pull request, and we want to avoid reporting invalid goheader errors.
50-
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0 since v6.3.1 does not handle `only-new-issues` correctly
51+
uses: golangci/golangci-lint-action@v6
5152
with:
5253
version: v1.60
5354
only-new-issues: true

0 commit comments

Comments
 (0)