Skip to content

Commit 4a1f345

Browse files
committed
Replace stack version detection
1 parent 7cf5621 commit 4a1f345

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

updatecli/updatecli.d/versions.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,18 @@ actions:
2626

2727
sources:
2828
latest-stack-version:
29-
name: Get latest Elastic Stack version
30-
kind: json
29+
name: Get latest stack version
30+
kind: githubrelease
31+
transformers:
32+
- trimprefix: v
3133
spec:
32-
file: https://artifacts.elastic.co/releases/stack.json
33-
key: "releases[-1].version"
34+
owner: elastic
35+
repository: elasticsearch
36+
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
37+
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
38+
versionfilter:
39+
kind: regex
40+
pattern: "v9.(\\d*).(\\d*)$"
3441

3542
latest-edot-android-version:
3643
name: Get latest release version for the apm-agent-android

0 commit comments

Comments
 (0)