Simplify release-pr.yml (#2070)
Some checks are pending
Release-plz / Release-plz (push) Waiting to run

We only want to use it for cargo-binstall release

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2025-02-28 23:29:25 +10:00 committed by GitHub
parent a799bb428c
commit 7c38109b23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,37 +1,12 @@
name: Open a release PR name: Open cargo-binstall release PR
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
crate:
description: Crate to release
required: true
type: choice
options:
- atomic-file-install
- bin
- binstalk
- binstalk-bins
- binstalk-fetchers
- binstalk-git-repo-api
- binstalk-registry
- binstalk-manifests
- binstalk-types
- binstalk-downloader
- cargo-toml-workspace
- detect-targets
- detect-wasi
- fs-lock
- normalize-path
version: version:
description: Version to release description: Version to release
required: true required: true
type: string type: string
default: patch default: patch
no-check-semver:
description: To disable check semver
required: true
type: string
default: "false"
permissions: permissions:
pull-requests: write pull-requests: write
@ -62,11 +37,11 @@ jobs:
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ inputs.version }} version: ${{ inputs.version }}
crate-path: crates/${{ inputs.crate }} crate-path: crates/bin
pr-label: release pr-label: release
pr-release-notes: ${{ inputs.crate == 'bin' }} pr-release-notes: true
pr-template-file: .github/scripts/release-pr-template.ejs pr-template-file: .github/scripts/release-pr-template.ejs
check-semver: ${{ inputs.crate != 'bin' && inputs.no-check-semver != 'true' }} check-semver: false
check-package: true check-package: true
env: env:
RUSTFLAGS: --cfg reqwest_unstable RUSTFLAGS: --cfg reqwest_unstable