Skip to content

Commit

Permalink
ci: Ensure golang version is fully qualified
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Sep 14, 2022
1 parent 4e65fc7 commit 89a13a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89a13a2

Please sign in to comment.