rustic/.github/workflows/release-pr.yml
simonsan e704a6c42b
ci: break old ci jobs when new commits are pushed so we don't fill up the queue
If new code is pushed to a PR branch, then cancel in progress workflows for that PR. Ensures that we don't waste CI time, and returns results quicker.

Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-02-18 00:10:17 +01:00

42 lines
1.3 KiB
YAML

name: Open a release PR
on:
workflow_dispatch:
inputs:
crate:
description: Crate to release
required: true
type: choice
options:
- rustic-rs
version:
description: Version to release
required: true
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
make-release-pr:
if: ${{ github.repository_owner == 'rustic-rs' }}
permissions:
id-token: write # Enable OIDC
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: chainguard-dev/actions/setup-gitsign@main
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2
- name: Install cargo-release
uses: taiki-e/install-action@8984d603c208823d3c1a1b796f4081736f3ae3f9 # v2
with:
tool: cargo-release
- uses: cargo-bins/release-pr@deeacca5a38bacc74a3f444b798f4b9bba40f6ad # v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ inputs.version }}
crate-name: ${{ inputs.crate }}
check-semver: false # FIXME: Set back to true and check rustic-rs library API