Skip to content

Commit 1f812e6

Browse files
committed
revetr
Signed-off-by: pvijayakrish <pvijayakrish@nvidia.com>
1 parent db1f043 commit 1f812e6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,16 @@ jobs:
4949
exit 1
5050
fi
5151
52-
if [[ ! "$BRANCH_NAME" =~ ^release/[0-9]+\.[0-9]+\.[0-9]+ ]]; then
52+
if [[ "$BRANCH_NAME" == "pvijayakrish/use-pat-for-rc-tagging" ]]; then
53+
VERSION="0.0.0test1"
54+
echo "Devel branch detected — using test version: ${VERSION}"
55+
elif [[ "$BRANCH_NAME" =~ ^release/[0-9]+\.[0-9]+\.[0-9]+ ]]; then
56+
VERSION="${BRANCH_NAME#release/}"
57+
else
5358
echo "Error: workflow_dispatch must be triggered from a release/* branch"
5459
echo "Current branch: $BRANCH_NAME"
5560
exit 1
5661
fi
57-
VERSION="${BRANCH_NAME#release/}"
5862
5963
echo "version=${VERSION}" >> $GITHUB_OUTPUT
6064
echo "commit_sha=${COMMIT_SHA}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)