Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashwat-K committed Jun 15, 2024
1 parent 84cf130 commit dcaddd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update_go_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- name: Update Go Version
id: update-go-version
run: |
latest_go_version=$(curl -s https://go.dev/VERSION?m=text | head -n 1)
go mod edit -go=${latest_go_version#go}
echo "Updated go version to ${latest_go_version#go}"
echo "::set-output name=latest_go_version::${latest_go_version#go}"
latest_go_version=$(curl -s https://go.dev/VERSION?m=text | head -n 1 | awk -F 'go' '{print $2}')
go mod edit -go=${latest_go_version}
echo "Updated go version to ${latest_go_version}"
echo "::set-output name=latest_go_version::${latest_go_version}"
- name: Set up Updated Go
uses: actions/setup-go@v4
Expand Down

0 comments on commit dcaddd5

Please sign in to comment.