Skip to content

Commit 8ad2f13

Browse files
authored
Fix CI lint go version (#84)
1 parent 38f76a1 commit 8ad2f13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/lint.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ jobs:
2121
- uses: actions/checkout@v6
2222
- uses: actions/setup-go@v6
2323
with:
24-
go-version: ${{ env.GO_VERSION }}
24+
go-version-file: ./go.mod
2525
- id: set-modules
26-
run: echo "modules=$(go list -m -json | jq -s '.' | jq -c '[.[].Dir]')" >> $GITHUB_OUTPUT
26+
run: |
27+
set -eo pipefail
28+
echo "modules=$(go list -m -json | jq -s '.' | jq -c '[.[].Dir]')" >> "$GITHUB_OUTPUT"
2729
2830
golangci-lint:
2931
needs: detect-modules

0 commit comments

Comments
 (0)