From 2cd3ff193507d12328fc39b83cda2b7013e3a9a8 Mon Sep 17 00:00:00 2001 From: Tariq Ibrahim Date: Thu, 21 Nov 2024 09:36:07 -0800 Subject: [PATCH] [GitHub Actions] inject golangci lint version at the right stage Signed-off-by: Tariq Ibrahim --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2c4566217..79f3e17ac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,9 +41,7 @@ jobs: id: vars run: | GOLANG_VERSION=$( grep "GOLANG_VERSION ?=" versions.mk ) - GOLANGCI_LINT_VERSION=$( grep "GOLANGCI_LINT_VERSION ?=" versions.mk ) echo "GOLANG_VERSION=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> $GITHUB_ENV - echo "GOLANGCI_LINT_VERSION=${GOLANGCI_LINT_VERSION##GOLANGCI_LINT_VERSION ?= }" >> $GITHUB_ENV - name: Install Go uses: actions/setup-go@v5 with: @@ -76,7 +74,9 @@ jobs: id: vars run: | GOLANG_VERSION=$( grep "GOLANG_VERSION ?=" versions.mk ) + GOLANGCI_LINT_VERSION=$( grep "GOLANGCI_LINT_VERSION ?=" versions.mk ) echo "GOLANG_VERSION=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> $GITHUB_ENV + echo "GOLANGCI_LINT_VERSION=${GOLANGCI_LINT_VERSION##GOLANGCI_LINT_VERSION ?= }" >> $GITHUB_ENV - name: Install Go uses: actions/setup-go@v5 with: