Skip to content

Commit ee34a52

Browse files
authored
updatecli: use condition to fix shell action idempotence (#266)
1 parent d971acf commit ee34a52

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.ci/bump-golang.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ conditions:
6060
image: golang
6161
tag: '{{ source "latestGoVersion" }}'
6262
sourceid: latestGoVersion
63+
is:
64+
name: Is version '{{ source "latestGoVersion" }}' not updated in 'go/Makefile.common'?
65+
kind: shell
66+
spec:
67+
command: 'grep -v -q {{ source "latestGoVersion" }} go/Makefile.common #'
68+
sourceid: latestGoVersion
6369

6470
targets:
6571
update-go-versions:

0 commit comments

Comments
 (0)