fix: harden reusable release tag validation

This commit is contained in:
Affaan Mustafa
2026-03-31 23:00:58 -07:00
parent e1bc08fa6e
commit 43ac81f1ac

View File

@@ -28,8 +28,10 @@ jobs:
fetch-depth: 0
- name: Validate version tag
env:
INPUT_TAG: ${{ inputs.tag }}
run: |
if ! [[ "${{ inputs.tag }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
if ! [[ "$INPUT_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Invalid version tag format. Expected vX.Y.Z"
exit 1
fi