Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ name: Release Candidate
# opens a candidate PR. When that
# PR merges, the `cut` job creates `release-vX.Y.Z` at the merge commit. No
# tag is created here — see release-settle / release-publish.
#
# To release a commit that is not the tip of the default branch, dispatch with
# `base_commit` as well: `propose` creates `release-vX.Y.Z` at that commit and
# aims the candidate PR at it, so that PR never touches the default branch and
# the `cut` job below does not run.

on:
workflow_dispatch:
Expand All @@ -13,6 +18,11 @@ on:
description: "Version to release (X.Y.Z)"
required: true
type: string
base_commit:
description: "Commit to release (blank: the tip of the default branch)"
required: false
type: string
default: ""
pull_request:
types: [closed]
branches: [main]
Expand Down Expand Up @@ -54,6 +64,7 @@ jobs:
stage: propose
token: ${{ steps.app-token.outputs.token }}
version: ${{ inputs.version }}
base_commit: ${{ inputs.base_commit }}
version_file: salt/Cargo.toml
version_pattern: toml
changelog_file: CHANGELOG.md
Expand Down
Loading