Skip to content

Commit d569818

Browse files
committed
fix: Correct regex character class in tag validation
The regex was using \-\. which creates an invalid character range in bash. Changed to .- (without escaping) which works correctly for matching hyphens and dots in prerelease tags. Fixes Docker build workflow failure during tag validation.
1 parent 6448160 commit d569818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- name: Validate tag format
9898
if: github.event_name == 'workflow_dispatch'
9999
run: |
100-
if [[ ! "${{ inputs.tag }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9\-\.]+)?$ ]]; then
100+
if [[ ! "${{ inputs.tag }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.-]+)?$ ]]; then
101101
echo "❌ Invalid tag format. Expected: v1.2.3 or v1.2.3-alpha"
102102
exit 1
103103
fi

0 commit comments

Comments
 (0)