Skip to content

Commit

Permalink
Chore: force set latest go version to action
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed Sep 17, 2021
1 parent b3cd4eb commit b398f1e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Get latest go version
id: version
run: |
echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: ${{ steps.version.outputs.go_version }}

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand Down

0 comments on commit b398f1e

Please sign in to comment.