Skip to content

Commit 21fa47a

Browse files
committed
fix golang lint
1 parent 1cd642b commit 21fa47a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/golangci-lint.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
id-token: write
1010
contents: read
1111
actions: read
12+
env:
13+
ALLOW_FAILURE: ${{ contains(join(github.event.pull_request.labels.*.name, ' '), 'allow-lint-issues') }}
1214
steps:
1315
- name: Setup tar default options
1416
shell: bash
@@ -26,8 +28,13 @@ jobs:
2628
go-version-file: go.mod
2729

2830
- name: Run golangci-lint
31+
if: ${{ env.ALLOW_FAILURE != 'true' }}
2932
uses: smartcontractkit/.github/actions/ci-lint-go@bd2ca3d8fa2dc89f98b49b297e9b72c2e3e68cdc # v3.1.0
3033
with:
3134
golangci-lint-version: v2.6.1
3235
only-new-issues: true
33-
working-directory: pkg
36+
go-directory: pkg
37+
38+
- name: Skip golangci-lint (allow-lint-issues)
39+
if: ${{ env.ALLOW_FAILURE == 'true' }}
40+
run: echo "Skipping golangci-lint because PR has the allow-lint-issues label"

0 commit comments

Comments
 (0)