ci(release): update descriptions and use oblt-actions@v1 (#13529) #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: run-minor-release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
<<<<<<< HEAD | ||
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)) |