We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cd642b commit 21fa47aCopy full SHA for 21fa47a
1 file changed
.github/workflows/golangci-lint.yml
@@ -9,6 +9,8 @@ jobs:
9
id-token: write
10
contents: read
11
actions: read
12
+ env:
13
+ ALLOW_FAILURE: ${{ contains(join(github.event.pull_request.labels.*.name, ' '), 'allow-lint-issues') }}
14
steps:
15
- name: Setup tar default options
16
shell: bash
@@ -26,8 +28,13 @@ jobs:
26
28
go-version-file: go.mod
27
29
30
- name: Run golangci-lint
31
+ if: ${{ env.ALLOW_FAILURE != 'true' }}
32
uses: smartcontractkit/.github/actions/ci-lint-go@bd2ca3d8fa2dc89f98b49b297e9b72c2e3e68cdc # v3.1.0
33
with:
34
golangci-lint-version: v2.6.1
35
only-new-issues: true
- 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