Skip to content

Commit 411bc6c

Browse files
committed
ci: allow tag-triggered host crate yanks
1 parent 2c20587 commit 411bc6c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/publish-crates.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
tags:
66
- 'v*'
77
- '[0-9]*'
8+
- 'yank-pd-host-function-*'
89
workflow_dispatch:
910
inputs:
1011
version:
@@ -50,6 +51,11 @@ jobs:
5051
INPUT_YANK_HOST_VERSION: ${{ inputs.yank_pd_host_function_version }}
5152
run: |
5253
set -euo pipefail
54+
if [[ "$GITHUB_REF_NAME" == yank-pd-host-function-* ]]; then
55+
host_version="${GITHUB_REF_NAME#yank-pd-host-function-}"
56+
cargo yank --vers "$host_version" pd-host-function
57+
exit 0
58+
fi
5359
version="${INPUT_VERSION:-${GITHUB_REF_NAME#v}}"
5460
if [[ -z "$version" ]]; then
5561
echo "version is required" >&2

0 commit comments

Comments
 (0)