Skip to content

Pre release

Pre release #8

Workflow file for this run

---
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:
- name: Get token
id: get-token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
permissions: >-
{
"contents": "write",
"pull_requests": "write"
}
repositories: >-
["terranova"]
- uses: elastic/oblt-actions/git/setup@v1
with:
github-token: ${{ steps.get-token.outputs.token }}
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
token: ${{ steps.get-token.outputs.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 }}