Pre release #7
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: Pre release | |
on: | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: "Branch or tag ref to run the workflow on" | |
required: true | |
default: "main" | |
version: | |
description: "The version to release (e.g. 1.2.3). This workflow will automatically perform the required version bumps" | |
required: true | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }} | |
jobs: | |
pre-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: elastic/apm-pipeline-library/.github/actions/setup-git@current | |
with: | |
token: ${{ secrets.EPHEMERAL_GH_TOKEN }} | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref }} | |
token: ${{ secrets.EPHEMERAL_GH_TOKEN }} | |
fetch-depth: 0 | |
- name: Install environment | |
uses: ./.github/workflows/env-install | |
- name: Run pre-release step | |
run: poetry run poe release:pre | |
env: | |
RELEASE_VERSION: ${{ inputs.version }} |