Skip to content

Prepare for Release #54

Prepare for Release

Prepare for Release #54

Workflow file for this run

name: Prepare for Release
on:
workflow_dispatch:
jobs:
detect-major-version:
uses: ./.github/workflows/detect-major-version.yml
tagversion:
needs: detect-major-version
uses: ./.github/workflows/tagversion.yml
with:
prerelease: false
custom_tag: ${{ needs.detect-major-version.outputs.custom_tag }}
branch:
needs: tagversion
runs-on: ubuntu-latest
steps:
- name: Create Branch
id: create-branch
uses: peterjgrainger/action-create-branch@4b81ce657e255acd677cc6c55c9c763654be3aef # @v4.0.0
with:
branch: 'release-${{ needs.tagversion.outputs.new_version }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
changelog:
needs: [tagversion, branch]
uses: ./.github/workflows/changelog.yml
with:
changelog: ${{ needs.tagversion.outputs.changelog }}
ref: release-${{ needs.tagversion.outputs.new_version }}
pr:
needs: [tagversion, branch, changelog]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Create Pull Request
shell: bash
run: |
gh pr create \
-B 'main' \
-H 'release-${{ needs.tagversion.outputs.new_version }}' \
--title 'docs: Release ${{ needs.tagversion.outputs.new_version }}' \
--body 'Merge this PR to Release to production. Only merge if the Merge Queue is empty; otherwise, unintended changes will be included in the release, and the changelog will be missing information. Please abandon this PR and delete the branch if this PR becomes out-of-date. Because PRs created by bots do not trigger workflows, please close and re-open this PR to trigger required workflows to start. Also edit the PR title (e.g., remove the -Prerelease text) to trigger the Semantic Version Required workflow check.'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}