From 0dd24e71210593d97928a6f5855e6c8f797a1e80 Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Wed, 14 Sep 2022 09:37:11 +0100 Subject: [PATCH] ci: Ensure golang version is fully qualified --- .github/workflows/checks.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index dc65c9f3..aedac0ba 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -46,13 +46,14 @@ jobs: - name: Output required tool versions id: tool-versions run: | - echo "::set-output name=go::$(grep -E '^golang ' .tool-versions | cut -d' ' -f2)" + echo "::set-output name=go::$(grep -E '^golang ' .tool-versions | cut -d' ' -f2 | sed -e 's/^\([0-9]\+\.[0-9]\+\)$/\1.0/')" echo "::set-output name=golangci-lint::v$(grep -E '^golangci-lint ' .tool-versions | cut -d' ' -f2)" - uses: actions/setup-go@v3 with: go-version: ${{ steps.tool-versions.outputs.go }} - check-latest: true + check-latest: false + cache: true - name: Ensure dummy skopeo files run: make ensure-static-skopeo