Skip to content
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

docs(apm-server): update golang version in version.asciidoc #3545

Closed
wants to merge 2 commits into from
Closed
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
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
# For more info, see https://help.github.com/articles/about-codeowners/

* @elastic/obs-docs

/docs/en/observability/apm/version.asciidoc @elastic/apm-server
42 changes: 42 additions & 0 deletions .github/updatecli.d/bump-golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Bump golang version to latest version in the APM Server docs.
pipelineid: 'updatecli-bump-golang'

actions:
default:
title: '[updatecli] Bump Golang version to {{ source "latestGoVersion" }}'
kind: github/pullrequest
scmid: default
spec:
description: |-
### What
Bump go release version with the latest available version in https://github.com/elastic/apm-server

scms:
default:
kind: github
spec:
user: '{{ requiredEnv "GIT_USER" }}'
email: '{{ requiredEnv "GIT_EMAIL" }}'
owner: elastic
repository: observability-docs
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
username: '{{ requiredEnv "GIT_USER" }}'
branch: main

sources:
latestGoVersion:
kind: file
spec:
file: https://raw.githubusercontent.com/elastic/apm-server/main/.go-version

targets:
update-version-asciidoc:
name: 'Update version.asciidoc with Golang version {{ source "latestGoVersion" }}'
sourceid: latestGoVersion
scmid: default
kind: file
spec:
file: docs/en/observability/apm/version.asciidoc
matchpattern: '(:go-version:) \d+.\d+.\d+'
replacepattern: '$1 {{ source "latestGoVersion" }}'
22 changes: 22 additions & 0 deletions .github/workflows/bump-golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: bump-golang

on:
workflow_dispatch:
schedule:
- cron: '0 3 * * 1-6'

permissions:
contents: read

jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: elastic/apm-pipeline-library/.github/actions/updatecli@current
with:
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
pipeline: ./.github/updatecli.d/bump-golang.yml