Pre release #18
This file contains hidden or 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: | |
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 | |
env: | |
# Ref: https://docs.astral.sh/uv/concepts/projects/sync/#checking-if-the-lockfile-is-up-to-date | |
UV_FROZEN: "true" | |
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: | |
token: ${{ steps.get-token.outputs.token }} | |
fetch-depth: 0 | |
- name: Install environment | |
uses: ./.github/workflows/env-install | |
- name: Run pre-release step | |
run: uv run poe release:pre | |
env: | |
RELEASE_VERSION: ${{ inputs.version }} | |
GH_TOKEN: ${{ steps.get-token.outputs.token }} |