Skip to content

Commit f3e05ad

Browse files
committed
fix(updatecli): use semver with major.minor.patch
1 parent 390deb5 commit f3e05ad

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

updatecli/policies/updatecli/version/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.2.1
4+
5+
- Fetch only semver releases with `major.minor.patch` format.
6+
37
## 0.2.0
48

59
- Use release version with the v prefix

updatecli/policies/updatecli/version/Policy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ url: "https://github.com/elastic/oblt-updatecli-policies/"
55
changelog: "https://github.com/elastic/oblt-updatecli-policies/tree/main/updatecli/policies/updatecli/version/CHANGELOG.md"
66
documentation: "https://github.com/elastic/oblt-updatecli-policies/tree/main/updatecli/policies/updatecli/version/README.md"
77
source: "https://github.com/elastic/oblt-updatecli-policies/tree/main/updatecli/policies/updatecli/version/"
8-
version: 0.2.0
8+
version: 0.2.1
99
vendor: Updatecli Project
1010

1111
licenses:

updatecli/policies/updatecli/version/updatecli.d/default.tpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ pipelineid: '{{ .pipelineid }}'
1313

1414
sources:
1515
version:
16-
name: Get latest updatecli version from updatecli/updatecli
16+
name: Get latest semver updatecli version from updatecli/updatecli
1717
kind: githubrelease
1818
spec:
1919
owner: updatecli
2020
repository: updatecli
2121
token: "{{ default $GitHubPAT .scm.token }}"
2222
username: "{{ default $GitHubUsername .scm.username }}"
2323
versionFilter:
24-
kind: latest
24+
kind: regex/semver
25+
pattern: "^(\\d*\\.\\d*\\.\\d*)$"
2526

2627
targets:
2728
updatecli-version-file:

0 commit comments

Comments
 (0)