Skip to content

Commit b99c6a5

Browse files
committed
force dispatch
1 parent f797264 commit b99c6a5

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/python-prerelease.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ on:
44
push:
55
tags:
66
- v*rc*
7-
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: "Tag to test (e.g., v0.30.0.rc0)"
11+
required: true
812
jobs:
913
trigger_rc_testing:
1014
runs-on: ubuntu-latest
@@ -15,9 +19,14 @@ jobs:
1519
target-repo: ["transformers", "datasets", "diffusers"]
1620

1721
steps:
18-
- name: Extract version from tag
22+
- name: Determine version from tag
1923
id: get-version
20-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
24+
run: |
25+
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
26+
echo "VERSION=${{ inputs.tag }}" >> $GITHUB_OUTPUT
27+
else
28+
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
29+
fi
2130
2231
- name: Checkout target repo
2332
uses: actions/checkout@v4

0 commit comments

Comments
 (0)