Skip to content

Commit a8134a8

Browse files
ycombinatormergify[bot]
authored andcommitted
Keep go.mod toolchain version in sync with .go-version contents (#4636)
(cherry picked from commit 213c09e)
1 parent 68f32d7 commit a8134a8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.ci/bump-golang.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,21 @@ targets:
123123
- Dockerfile
124124
- Dockerfile.skaffold
125125
matchpattern: 'ARG GO_VERSION=\d+.\d+.\d+'
126-
update-gomod:
127-
name: "Update go.mod"
126+
update-gomod-minor-version:
127+
name: "Update go.mod minor version"
128128
sourceid: gomod
129129
scmid: githubConfig
130130
kind: file
131131
spec:
132132
content: 'go {{ source "gomod" }}'
133133
file: go.mod
134134
matchpattern: 'go \d+.\d+'
135+
update-gomod-toolchain-version:
136+
name: "Update go.mod toolchain version"
137+
sourceid: latestGoVersion
138+
scmid: githubConfig
139+
kind: file
140+
spec:
141+
content: 'toolchain go{{ source "latestGoVersion" }}'
142+
file: go.mod
143+
matchpattern: 'toolchain go\d+.\d+.\d+'

0 commit comments

Comments
 (0)