2022-06-15 05:25:05 +02:00
|
|
|
name: Open a release PR
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
crate:
|
|
|
|
description: Crate to release
|
|
|
|
required: true
|
|
|
|
type: choice
|
2022-06-16 00:52:20 +02:00
|
|
|
options:
|
2022-06-15 05:25:05 +02:00
|
|
|
- cli
|
|
|
|
- lib
|
2022-09-07 01:24:53 +02:00
|
|
|
- filterer/globset
|
|
|
|
- filterer/ignore
|
|
|
|
- filterer/tagged
|
2022-06-15 05:25:05 +02:00
|
|
|
- ignore-files
|
|
|
|
- project-origins
|
|
|
|
version:
|
|
|
|
description: Version to release
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
2022-06-16 00:52:20 +02:00
|
|
|
make-release-pr:
|
2022-06-15 05:25:05 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install cargo-release
|
2022-09-07 01:24:53 +02:00
|
|
|
uses: taiki-e/install-action@v1
|
2022-06-15 05:25:05 +02:00
|
|
|
with:
|
2022-09-07 01:24:53 +02:00
|
|
|
tool: cargo-release
|
2022-06-15 05:25:05 +02:00
|
|
|
|
2022-09-07 01:24:53 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-06-15 05:25:05 +02:00
|
|
|
with:
|
|
|
|
ref: main
|
|
|
|
|
2022-09-07 01:24:53 +02:00
|
|
|
- uses: cargo-bins/release-pr@v1
|
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
version: ${{ inputs.version }}
|
|
|
|
crate-path: crates/${{ inputs.crate }}
|
|
|
|
pr-release-notes: true
|
|
|
|
pr-label: release
|
|
|
|
pr-template-file: .github/workflows/release-pr.ejs
|