Skip to content

Commit 9527c38

Browse files
committed
fix golang lint
1 parent 1cd642b commit 9527c38

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ jobs:
2626
go-version-file: go.mod
2727

2828
- name: Run golangci-lint
29+
env:
30+
ALLOW_FAILURE: ${{ contains(join(github.event.pull_request.labels.*.name, ' '), 'allow-lint-issues') }}
2931
uses: smartcontractkit/.github/actions/ci-lint-go@bd2ca3d8fa2dc89f98b49b297e9b72c2e3e68cdc # v3.1.0
3032
with:
3133
golangci-lint-version: v2.6.1
3234
only-new-issues: true
33-
working-directory: pkg
35+
go-directory: ${{ env.ALLOW_FAILURE == 'true' && 'tools' || 'pkg' }}

0 commit comments

Comments
 (0)