Prepare release pull request #8
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: 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 |