mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 21:18:42 +00:00
41 lines
1,004 B
YAML
41 lines
1,004 B
YAML
name: Open a release PR
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
crate:
|
|
description: Crate to release
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- bin
|
|
- lib
|
|
- detect-targets
|
|
- detect-wasi
|
|
- fs-lock
|
|
- normalize-path
|
|
version:
|
|
description: Version to release
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
make-release-pr:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install cargo-release
|
|
uses: taiki-e/install-action@v1
|
|
with:
|
|
tool: cargo-release
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: main
|
|
|
|
- uses: cargo-bins/release-pr@v1
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
version: ${{ inputs.version }}
|
|
crate-path: crates/${{ inputs.crate }}
|
|
pr-label: release
|
|
pr-release-notes: ${{ inputs.crate == 'bin' }}
|
|
pr-template-file: .github/scripts/release-pr-template.ejs
|