Skip to content

ci(release): update descriptions and use oblt-actions@v1 (#13529) #26

ci(release): update descriptions and use oblt-actions@v1 (#13529)

ci(release): update descriptions and use oblt-actions@v1 (#13529) #26

---
name: run-minor-release
on:
workflow_dispatch:
inputs:
version:
<<<<<<< HEAD

Check failure on line 8 in .github/workflows/run-minor-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/run-minor-release.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
description: 'The version (semver format: major.minor.patch)'
=======
description: 'The new version to be set, normally the version in the main branch (semver format: major.minor.0)'
>>>>>>> daf2ef90d (ci(release): update descriptions and use oblt-actions@v1 (#13529))
required: true
type: string
permissions:
contents: read
env:
SLACK_CHANNEL: "#apm-server-test-release"
jobs:
run-minor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
<<<<<<< HEAD
=======
with:
# 0 indicates all history for all branches and tags.
fetch-depth: 0
# Required to use a service account, otherwise PRs created by
# GitHub bot won't trigger any CI builds.
# See https://github.com/peter-evans/create-pull-request/issues/48#issuecomment-537478081
- name: Configure git user
uses: elastic/oblt-actions/git/setup@v1
with:
github-token: ${{ env.GH_TOKEN }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
with:
gpg_private_key: ${{ secrets.APM_SERVER_RELEASE_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.APM_SERVER_RELEASE_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- run: make minor-release
- if: success()
uses: elastic/oblt-actions/slack/send@v1.9.1
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: ${{ env.SLACK_CHANNEL }}
message: |-
`${{ github.repository }}@${{ env.RELEASE_BRANCH }}` is now available.
The docs and other references are updated. You can start using it.
thread-timestamp: ${{ needs.prepare.outputs.slack-thread || '' }}
- if: failure()
uses: elastic/oblt-actions/slack/send@v1.9.1
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: ${{ env.SLACK_CHANNEL }}
message: |-
:fire: Something went wrong with the release. See <${{ env.JOB_URL }}|logs>.
thread-timestamp: ${{ needs.prepare.outputs.slack-thread || '' }}
>>>>>>> daf2ef90d (ci(release): update descriptions and use oblt-actions@v1 (#13529))