We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db1f043 commit 1f812e6Copy full SHA for 1f812e6
.github/workflows/release.yml
@@ -49,12 +49,16 @@ jobs:
49
exit 1
50
fi
51
52
- if [[ ! "$BRANCH_NAME" =~ ^release/[0-9]+\.[0-9]+\.[0-9]+ ]]; then
+ 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
58
echo "Error: workflow_dispatch must be triggered from a release/* branch"
59
echo "Current branch: $BRANCH_NAME"
60
61
- VERSION="${BRANCH_NAME#release/}"
62
63
echo "version=${VERSION}" >> $GITHUB_OUTPUT
64
echo "commit_sha=${COMMIT_SHA}" >> $GITHUB_OUTPUT
0 commit comments