mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-04 03:19:37 +00:00
branch name use and extraction fixes, limit validation to main branch
This commit is contained in:
4
.github/scripts/extract_version.sh
vendored
4
.github/scripts/extract_version.sh
vendored
@@ -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 ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user