Open a release PR #3
This file contains 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: Open a release PR | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: Version to release | |
required: true | |
type: string | |
default: patch | |
jobs: | |
make-release-pr: | |
permissions: | |
id-token: write # Enable OIDC | |
pull-requests: write | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure toolchain | |
run: | | |
rustup toolchain install --profile minimal --no-self-update nightly | |
rustup default nightly | |
- uses: chainguard-dev/actions/setup-gitsign@main | |
- name: Install cargo-release | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-release,cargo-semver-checks | |
- uses: cargo-bins/release-pr@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
version: ${{ inputs.version }} | |
pr-label: release | |
pr-release-notes: true | |
pr-template-file: .github/scripts/release-pr-template.ejs | |
check-semver: true | |
check-package: true | |
crate-release-all: true | |
crate-path: ./ |