branch name use and extraction fixes, limit validation to main branch

This commit is contained in:
github-actions[bot]
2025-10-27 14:23:05 +11:00
parent 63830beda2
commit 74c8980edc
4 changed files with 17 additions and 4 deletions

View File

@@ -62,7 +62,9 @@ else
BRANCH_NAME="$1"
# Extract version from branch name (release/1.2.3 -> 1.2.3)
BRANCH_VERSION="${BRANCH_NAME#release/}"
# Also strip refs/heads/ if present (from github.ref)
BRANCH_VERSION="${BRANCH_NAME#refs/heads/}"
BRANCH_VERSION="${BRANCH_VERSION#release/}"
echo "Branch version: $BRANCH_VERSION"
echo ""