File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Weekly go version check
2
+
3
+
4
+ on :
5
+ schedule :
6
+ # Cron for every week at 12:00 UTC.
7
+ - cron : " "
8
+
9
+ permissions : {}
10
+
11
+ jobs :
12
+ weekly-go-patch-version-check :
13
+ name : Check go patch version
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
18
+ - name : Get changed files
19
+ id : changed-files
20
+ uses : tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c
21
+ with :
22
+ files : |
23
+ ./*file | egrep -v "Dockerfile"
24
+ - name : Get latest go patch version
25
+ id : patch-version
26
+ run : |
27
+ export GO_PATCH_VERSION=$(curl --silent https://go.dev/VERSION?m=text)
28
+ sed -i 's/GO_VERSION=[0-9\.]*/GO_VERSION=$GO_PATCH_VERSION/' Makefile
29
+ sed -i 's/golang:[0-9\.]*/golang:$GO_PATCH_VERSION/' Tiltfile
30
+ - name : Create Pull Request
31
+ uses : peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # tag=v7.0.5
32
+ with :
33
+ commit-message : Bump to Go ${GO_PATCH_VERSION}
34
+ title : " Bump to Go patch version ${GO_PATCH_VERSION}"
35
+ body : |
36
+ This PR promotes current GO version to the latest patch version of ${GO_PATCH_VERSION}
37
+ branch : promote-go-patch-version-${{ GO_PATCH_VERSION }}
38
+
39
+
You can’t perform that action at this time.
0 commit comments