mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-16 09:08:37 +01:00
477d59d319
Co-authored-by: Félix Saparelli <felix@passcod.name> Co-authored-by: github-actions <github-actions@github.com>
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
name: Open a release PR
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
crate:
|
|
description: Crate to release
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- cli
|
|
- lib
|
|
- bosion
|
|
- events
|
|
- ignore-files
|
|
- project-origins
|
|
- signals
|
|
- supervisor
|
|
- filterer/globset
|
|
- filterer/ignore
|
|
- filterer/tagged
|
|
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
|
|
- uses: chainguard-dev/actions/setup-gitsign@main
|
|
- name: Install cargo-release
|
|
uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: cargo-release
|
|
|
|
- uses: cargo-bins/release-pr@v2
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
version: ${{ inputs.version }}
|
|
crate-path: crates/${{ inputs.crate }}
|
|
pr-release-notes: ${{ inputs.crate == 'cli' }}
|
|
pr-label: release
|
|
pr-template-file: .github/workflows/release-pr.ejs
|
|
env:
|
|
GITSIGN_LOG: /tmp/gitsign.log
|
|
|
|
- run: cat /tmp/gitsign.log
|
|
if: ${{ failure() }}
|