We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f797264 commit b99c6a5Copy full SHA for b99c6a5
.github/workflows/python-prerelease.yml
@@ -4,7 +4,11 @@ on:
4
push:
5
tags:
6
- v*rc*
7
-
+ workflow_dispatch:
8
+ inputs:
9
+ tag:
10
+ description: "Tag to test (e.g., v0.30.0.rc0)"
11
+ required: true
12
jobs:
13
trigger_rc_testing:
14
runs-on: ubuntu-latest
@@ -15,9 +19,14 @@ jobs:
15
19
target-repo: ["transformers", "datasets", "diffusers"]
16
20
17
21
steps:
18
- - name: Extract version from tag
22
+ - name: Determine version from tag
23
id: get-version
- 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
30
31
- name: Checkout target repo
32
uses: actions/checkout@v4
0 commit comments