Skip to content

Commit 2e51574

Browse files
remove branch name check
1 parent 45c4248 commit 2e51574

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ jobs:
4747
- name: Set version from branch name
4848
run: |
4949
BRANCH_NAME="${GITHUB_REF#refs/heads/}"
50-
# Validate branch name is a valid version (only alphanumeric, dots, and hyphens)
51-
if ! echo "$BRANCH_NAME" | grep -Eq '^[a-zA-Z0-9.-]+$'; then
52-
echo "Error: Branch name '$BRANCH_NAME' is not a valid version format"
53-
echo "Version must contain only letters, numbers, dots, and hyphens"
54-
exit 1
55-
fi
5650
echo "VERSION=$BRANCH_NAME" >> $GITHUB_ENV
5751
echo "Using version: $BRANCH_NAME"
5852

0 commit comments

Comments
 (0)