Skip to content

Commit 61a9789

Browse files
authored
updatecli: add conditions for the security version (#595)
1 parent 1707a80 commit 61a9789

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/updatecli.d/bump-microsoft.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,28 @@ sources:
5353
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
5454
versionfilter:
5555
kind: regex
56-
pattern: v1\.{{ source "minor" }}\.(\d*)-(\d*)$
56+
pattern: v1\.{{ source "minor" }}\.(\d*)(-\d*)$
57+
58+
securityVersion:
59+
name: Get security version
60+
dependson:
61+
- latestGoVersion
62+
kind: shell
63+
transformers:
64+
- findsubmatch:
65+
pattern: '^1.{{ source "minor" }}.\d+(-\d+)'
66+
captureindex: 1
67+
spec:
68+
command: echo {{ source "latestGoVersion" }}
69+
70+
conditions:
71+
is-already-updated:
72+
name: Is security version '{{ source "securityVersion" }}' not updated in 'go/base/Dockerfile.tmpl'?
73+
disablesourceinput: true
74+
kind: shell
75+
spec:
76+
command: grep 'ARG SECURITY_VERSION={{ source `securityVersion` }}' go/base/Dockerfile.tmpl && exit 1 || exit 0
77+
failwhen: false
5778

5879
targets:
5980
update-go-versions:

0 commit comments

Comments
 (0)