run-minor-release #7
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 | |
permissions: | |
contents: read | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
outputs: | |
release-branch: ${{ steps.generate.outputs.release-branch }} | |
release-version: ${{ steps.generate.outputs.release-version }} | |
slack-thread: ${{ steps.generate.outputs.threadTimestamp }} | |
slack-channel: ${{ steps.generate.outputs.slack-channel }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: generate | |
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 | |
- 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: ${{ needs.prepare.outputs.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: ${{ needs.prepare.outputs.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. |