Skip to content

Commit 2e862a5

Browse files
committed
update env value
1 parent c8c9d1e commit 2e862a5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,15 @@ jobs:
3434
- name: Get latest go patch version
3535
id: patch-version
3636
run: |
37-
export GO_PATCH_VERSION=$(curl --silent https://go.dev/VERSION?m=text)
38-
sed -i 's/GO_VERSION=[0-9\.]*/GO_VERSION=$GO_PATCH_VERSION/' Makefile
39-
sed -i 's/golang:[0-9\.]*/golang:$GO_PATCH_VERSION/' Tiltfile
37+
export "GO_PATCH_VERSION=$(curl --silent https://go.dev/VERSION?m=text)" >> $GITHUB_ENV
38+
sed -i 's/GO_VERSION=[0-9\.]*/GO_VERSION=${{ env.GO_PATCH_VERSION }}/' Makefile
39+
sed -i 's/golang:[0-9\.]*/golang:${{ env.GO_PATCH_VERSION }}/' Tiltfile
40+
echo $env.GO_PATCH_VERSION
4041
- name: Create Pull Request
4142
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # tag=v7.0.5
4243
with:
43-
commit-message: Bump to Go ${GO_PATCH_VERSION}
44-
title: "Bump to Go patch version ${GO_PATCH_VERSION}"
44+
commit-message: Bump to Go ${{ env.GO_PATCH_VERSION }}
45+
title: "Bump to Go patch version ${{ env.GO_PATCH_VERSION }}"
4546
body: |
4647
This PR promotes current GO version to the latest patch version of ${GO_PATCH_VERSION}
47-
branch: promote-go-patch-version-${{ GO_PATCH_VERSION }}
48-
49-
48+
branch: promote-go-patch-version-${{ env.GO_PATCH_VERSION }}

0 commit comments

Comments
 (0)