run-minor-release #10
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: | |
description: 'The version (semver format: major.minor.0)' | |
required: true | |
type: string | |
# Avoid concurrency so we can watch the releases correctly | |
concurrency: | |
group: ${{ github.workflow }} | |
permissions: | |
contents: read | |
env: | |
SLACK_CHANNEL: "#apm-server-test-release" | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
outputs: | |
release-branch: ${{ steps.prepare.outputs.release-branch }} | |
release-version: ${{ steps.prepare.outputs.release-version }} | |
slack-thread: ${{ steps.prepare.outputs.slack-thread }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: prepare | |
uses: ./.github/workflows/prepare-release | |
with: | |
vault-url: ${{ secrets.VAULT_ADDR }} | |
vault-role-id: ${{ secrets.VAULT_ROLE_ID }} | |
vault-secret-id: ${{ secrets.VAULT_SECRET_ID }} | |
version: ${{ inputs.version }} | |
type: 'minor' | |
run-minor: | |
runs-on: ubuntu-latest | |
needs: [ prepare ] | |
env: | |
RELEASE_BRANCH: ${{ needs.prepare.outputs.release-branch }} | |
RELEASE_VERSION: ${{ needs.prepare.outputs.release-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# 0 indicates all history for all branches and tags. | |
fetch-depth: 0 | |
- uses: elastic/apm-pipeline-library/.github/actions/slack-message@current | |
with: | |
url: ${{ secrets.VAULT_ADDR }} | |
roleId: ${{ secrets.VAULT_ROLE_ID }} | |
secretId: ${{ secrets.VAULT_SECRET_ID }} | |
channel: ${{ env.SLACK_CHANNEL }} | |
threadTimestamp: ${{ needs.prepare.outputs.slack-thread || '' }} | |
message: |- | |
Feature freeze for `${{ github.repository }}@${{ env.RELEASE_VERSION }}` just started. | |
The `${{ github.repository }}@${{ env.RELEASE_BRANCH }}` branch will be created Today. | |
- run: make minor-release | |
- uses: elastic/apm-pipeline-library/.github/actions/slack-message@current | |
with: | |
url: ${{ secrets.VAULT_ADDR }} | |
roleId: ${{ secrets.VAULT_ROLE_ID }} | |
secretId: ${{ secrets.VAULT_SECRET_ID }} | |
channel: ${{ env.SLACK_CHANNEL }} | |
threadTimestamp: ${{ needs.prepare.outputs.slack-thread || '' }} | |
message: |- | |
`${{ github.repository }}@${{ env.RELEASE_BRANCH }}` is now available. | |
The docs and other references are updated. You can start using it. |