Skip to content

Commit

Permalink
fix latest go tag detection
Browse files Browse the repository at this point in the history
Signed-off-by: eternal-flame-AD <[email protected]>
  • Loading branch information
eternal-flame-AD committed Oct 26, 2024
1 parent 892e545 commit 859495e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up environment (non-tagged release)
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: |
GO_VERSION=latest
GO_VERSION=$(curl -sSL 'https://go.dev/dl/?mode=json' | jq -r '.[] | select (.stable) | .version | sub("^go"; "")' | head -n 1)
echo "GO_VERSION=$GO_VERSION" >> $GITHUB_ENV
- name: Build
Expand Down

0 comments on commit 859495e

Please sign in to comment.