Skip to content

Commit 59eaca4

Browse files
committed
update env value
1 parent c8c9d1e commit 59eaca4

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

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

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ on:
55
push:
66
branches:
77
- automate-go-patching
8-
9-
# schedule:
10-
# # Cron for every Mon at 12:00 UTC.
11-
# - cron: "0 12 * * 1"
8+
schedule:
9+
# Cron for every Mon at 12:00 UTC.
10+
- cron: "0 12 * * 1"
1211

1312
permissions:
1413
contents: write
@@ -34,16 +33,15 @@ jobs:
3433
- name: Get latest go patch version
3534
id: patch-version
3635
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
36+
echo "GO_PATCH_VERSION=$(curl --silent https://go.dev/VERSION?m=text | sed -n 's/^go\([0-9.]*\).*/\1/p')" >> $GITHUB_ENV
37+
pwd
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
4040
- name: Create Pull Request
4141
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # tag=v7.0.5
4242
with:
43-
commit-message: Bump to Go ${GO_PATCH_VERSION}
44-
title: "Bump to Go patch version ${GO_PATCH_VERSION}"
43+
commit-message: Bump to Go ${{ env.GO_PATCH_VERSION }}
44+
title: "Bump to Go patch version ${{ env.GO_PATCH_VERSION }}"
4545
body: |
4646
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-
47+
branch: promote-go-patch-version-${{ env.GO_PATCH_VERSION }}

0 commit comments

Comments
 (0)