Skip to content

Prepare release pull request #8

Prepare release pull request

Prepare release pull request #8

Workflow file for this run

name: Prepare release pull request
on:
workflow_run:
workflows:
- Repository and artifact checks
types:
- completed
permissions:
contents: write
pull-requests: write
concurrency:
group: prepare-release-pr
cancel-in-progress: true
jobs:
prepare:
if: >-
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push' &&
github.event.workflow_run.head_branch == 'main'
runs-on: ubuntu-latest
steps:
- name: Checkout checked main
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_sha }}
- name: Set up Python and PDM
uses: pdm-project/setup-pdm@973541a5febeafcfdadf8a51211435be6ecfd90f # v4.5
with:
python-version-file: .python-version
version: 2.28.0
cache: true
- name: Install locked release tooling
run: pdm install -G dev --frozen-lockfile
- name: Prepare every pending project
run: pdm run release:prepare
- name: Update generated branch
env:
GH_TOKEN: ${{ github.token }}
run: bash scripts/automation/release_pr.sh