mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-05 11:01:32 +02:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
name: Open a release PR
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
crate:
|
|
description: Crate to release
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- cli
|
|
- lib
|
|
- filterer/globset
|
|
- filterer/ignore
|
|
- filterer/tagged
|
|
- ignore-files
|
|
- project-origins
|
|
version:
|
|
description: Version to release
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
make-release-pr:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: chainguard-dev/actions/setup-gitsign@main
|
|
- 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-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() }}
|