File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change 5
5
push :
6
6
branches :
7
7
- 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"
12
11
13
12
permissions :
14
13
contents : write
@@ -34,16 +33,15 @@ jobs:
34
33
- name : Get latest go patch version
35
34
id : patch-version
36
35
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
40
40
- name : Create Pull Request
41
41
uses : peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # tag=v7.0.5
42
42
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 } }"
45
45
body : |
46
46
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 }}
You can’t perform that action at this time.
0 commit comments