Skip to content

Commit 8ed951f

Browse files
committed
updat calculation for go_patch_version
1 parent e08f1c9 commit 8ed951f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/weekly-go-version-check.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
- name: Get latest go patch version
3535
id: patch-version
3636
run: |
37-
echo "GO_PATCH_VERSION=$(curl --silent https://go.dev/VERSION?m=text)" >> $GITHUB_ENV
37+
echo "GO_PATCH_VERSION=$(curl --silent https://go.dev/VERSION?m=text | sed -n 's/^go\([0-9.]*\).*/\1/p')" >> $GITHUB_ENV
38+
echo "${{ env.GO_PATCH_VERSION }}"
3839
sed -i 's/GO_VERSION=[0-9\.]*/GO_VERSION=${{ env.GO_PATCH_VERSION }}/' Makefile
3940
sed -i 's/golang:[0-9\.]*/golang:${{ env.GO_PATCH_VERSION }}/' Tiltfile
4041
echo "${{ env.GO_PATCH_VERSION }}"

0 commit comments

Comments
 (0)