Skip to content
Merged
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
40 changes: 17 additions & 23 deletions .github/updatecli/updatecli.d/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,14 @@ actions:
title: '[Automation] Bump product version numbers'

sources:
# TODO Automate only for patch releases
# latest-stack-version:
# name: Get latest stack version
# kind: githubrelease
# transformers:
# - trimprefix: v
# spec:
# owner: elastic
# repository: elasticsearch
# token: '{{ requiredEnv "GITHUB_TOKEN" }}'
# username: '{{ requiredEnv "GITHUB_ACTOR" }}'
# versionfilter:
# kind: regex
# pattern: "v9.(\\d*).(\\d*)$"
latest-stack-version:
name: Get latest stack version
kind: json
spec:
files:
- https://artifacts.elastic.co/releases/stack.json
engine: dasel/v2
key: "releases.last().version"

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

targets:
# update-docs-docset-stack:
# name: 'Update config/versions.yml stack {{ source "latest-stack-version" }}'
# scmid: githubConfig
# sourceid: latest-stack-version
# kind: file
# spec:
# file: config/versions.yml
# matchpattern: '(stack: &stack\s+base: [\d\.]+\s+current:)\s+(.+)'
# replacepattern: '$1 {{ source "latest-stack-version" }}'
update-docs-docset-stack:
name: 'Update config/versions.yml stack {{ source "latest-stack-version" }}'
scmid: githubConfig
sourceid: latest-stack-version
kind: file
spec:
file: config/versions.yml
matchpattern: '(stack: &stack\s+base: [\d\.]+\s+current:)\s+(.+)'
replacepattern: '$1 {{ source "latest-stack-version" }}'

update-docs-docset-android:
name: 'Update config/versions.yml edot-android {{ source "latest-edot-android-version" }}'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/updatecli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Get token
id: get_token
Expand All @@ -35,6 +35,7 @@ jobs:
- uses: elastic/oblt-actions/updatecli/run@v1
with:
command: apply --config .github/updatecli/updatecli.d/versions.yml --values .github/updatecli/values.d/scm.yml
version-file: .updatecli-version
env:
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}

Expand Down
1 change: 1 addition & 0 deletions .updatecli-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.105.1
Loading