Skip to content

Add stack version bumps #1741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 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
Loading