Skip to content

Commit a00b489

Browse files
authored
Add stack version bumps (#1741)
* Add stack version bumps * Update version * Move file to root
1 parent c103989 commit a00b489

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

.github/updatecli/updatecli.d/versions.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,14 @@ actions:
2525
title: '[Automation] Bump product version numbers'
2626

2727
sources:
28-
# TODO Automate only for patch releases
29-
# latest-stack-version:
30-
# name: Get latest stack version
31-
# kind: githubrelease
32-
# transformers:
33-
# - trimprefix: v
34-
# spec:
35-
# owner: elastic
36-
# repository: elasticsearch
37-
# token: '{{ requiredEnv "GITHUB_TOKEN" }}'
38-
# username: '{{ requiredEnv "GITHUB_ACTOR" }}'
39-
# versionfilter:
40-
# kind: regex
41-
# pattern: "v9.(\\d*).(\\d*)$"
28+
latest-stack-version:
29+
name: Get latest stack version
30+
kind: json
31+
spec:
32+
files:
33+
- https://artifacts.elastic.co/releases/stack.json
34+
engine: dasel/v2
35+
key: "releases.last().version"
4236

4337
latest-edot-android-version:
4438
name: Get latest release version for the apm-agent-android
@@ -292,15 +286,15 @@ sources:
292286
pattern: "^@elastic/apm-rum@(\\d*).(\\d*).(\\d*)$"
293287

294288
targets:
295-
# update-docs-docset-stack:
296-
# name: 'Update config/versions.yml stack {{ source "latest-stack-version" }}'
297-
# scmid: githubConfig
298-
# sourceid: latest-stack-version
299-
# kind: file
300-
# spec:
301-
# file: config/versions.yml
302-
# matchpattern: '(stack: &stack\s+base: [\d\.]+\s+current:)\s+(.+)'
303-
# replacepattern: '$1 {{ source "latest-stack-version" }}'
289+
update-docs-docset-stack:
290+
name: 'Update config/versions.yml stack {{ source "latest-stack-version" }}'
291+
scmid: githubConfig
292+
sourceid: latest-stack-version
293+
kind: file
294+
spec:
295+
file: config/versions.yml
296+
matchpattern: '(stack: &stack\s+base: [\d\.]+\s+current:)\s+(.+)'
297+
replacepattern: '$1 {{ source "latest-stack-version" }}'
304298

305299
update-docs-docset-android:
306300
name: 'Update config/versions.yml edot-android {{ source "latest-edot-android-version" }}'

.github/workflows/updatecli.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
bump:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020

2121
- name: Get token
2222
id: get_token
@@ -35,6 +35,7 @@ jobs:
3535
- uses: elastic/oblt-actions/updatecli/run@v1
3636
with:
3737
command: apply --config .github/updatecli/updatecli.d/versions.yml --values .github/updatecli/values.d/scm.yml
38+
version-file: .updatecli-version
3839
env:
3940
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
4041

.updatecli-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v0.105.1

0 commit comments

Comments
 (0)