Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions updatecli/policies/updatecli/version/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.1

- Fetch only semver releases with `major.minor.patch` format.

## 0.2.0

- Use release version with the v prefix
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/updatecli/version/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ url: "https://github.com/elastic/oblt-updatecli-policies/"
changelog: "https://github.com/elastic/oblt-updatecli-policies/tree/main/updatecli/policies/updatecli/version/CHANGELOG.md"
documentation: "https://github.com/elastic/oblt-updatecli-policies/tree/main/updatecli/policies/updatecli/version/README.md"
source: "https://github.com/elastic/oblt-updatecli-policies/tree/main/updatecli/policies/updatecli/version/"
version: 0.2.0
version: 0.2.1
vendor: Updatecli Project

licenses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ pipelineid: '{{ .pipelineid }}'

sources:
version:
name: Get latest updatecli version from updatecli/updatecli
name: Get latest semver updatecli version from updatecli/updatecli
kind: githubrelease
spec:
owner: updatecli
repository: updatecli
token: "{{ default $GitHubPAT .scm.token }}"
username: "{{ default $GitHubUsername .scm.username }}"
versionFilter:
kind: latest
kind: regex/semver
pattern: "^(\\d*\\.\\d*\\.\\d*)$"

targets:
updatecli-version-file:
Expand Down
Loading