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
|
2023-03-05 04:29:54 +01:00
|
|
|
- bosion
|
2023-03-18 09:32:24 +01:00
|
|
|
- events
|
2022-06-15 05:25:05 +02:00
|
|
|
- ignore-files
|
|
|
|
- project-origins
|
2023-03-18 09:32:24 +01:00
|
|
|
- signals
|
2023-11-26 04:21:13 +01:00
|
|
|
- supervisor
|
2023-03-18 09:32:24 +01:00
|
|
|
- filterer/globset
|
|
|
|
- filterer/ignore
|
|
|
|
- filterer/tagged
|
2022-06-15 05:25:05 +02:00
|
|
|
version:
|
|
|
|
description: Version to release
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-09-07 06:54:40 +02:00
|
|
|
default: patch
|
2022-06-15 05:25:05 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-06-16 00:52:20 +02:00
|
|
|
make-release-pr:
|
2022-09-07 06:53:28 +02:00
|
|
|
permissions:
|
|
|
|
id-token: write # Enable OIDC
|
|
|
|
pull-requests: write
|
|
|
|
contents: write
|
2022-06-15 05:25:05 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 06:05:40 +02:00
|
|
|
- uses: actions/checkout@v4
|
2022-09-07 06:40:31 +02:00
|
|
|
- uses: chainguard-dev/actions/setup-gitsign@main
|
2022-06-15 05:25:05 +02:00
|
|
|
- name: Install cargo-release
|
2023-01-06 15:17:33 +01:00
|
|
|
uses: taiki-e/install-action@v2
|
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-11-14 17:12:24 +01:00
|
|
|
- uses: cargo-bins/release-pr@v2
|
2022-09-07 01:24:53 +02:00
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
version: ${{ inputs.version }}
|
|
|
|
crate-path: crates/${{ inputs.crate }}
|
2023-03-22 02:55:16 +01:00
|
|
|
pr-release-notes: true
|
2022-09-07 01:24:53 +02:00
|
|
|
pr-label: release
|
|
|
|
pr-template-file: .github/workflows/release-pr.ejs
|
2022-09-07 06:46:19 +02:00
|
|
|
env:
|
|
|
|
GITSIGN_LOG: /tmp/gitsign.log
|
|
|
|
|
|
|
|
- run: cat /tmp/gitsign.log
|
|
|
|
if: ${{ failure() }}
|