Skip to content

Commit b17fcd9

Browse files
authored
ci: use linter version from Dockerfile (coder#12354)
1 parent b24ad1b commit b17fcd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ jobs:
126126

127127
- name: Get golangci-lint cache dir
128128
run: |
129-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.2
129+
linter_ver=$(egrep -o 'GOLANGCI_LINT_VERSION=\S+' dogfood/Dockerfile | cut -d '=' -f 2)
130+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v$linter_ver
130131
dir=$(golangci-lint cache status | awk '/Dir/ { print $2 }')
131132
echo "LINT_CACHE_DIR=$dir" >> $GITHUB_ENV
132133

0 commit comments

Comments
 (0)