update pytoml version again

This commit is contained in:
yichuan520030910320
2025-07-26 17:09:45 -07:00
parent cdb92f7cf4
commit cc1a62e5aa
2 changed files with 23 additions and 5 deletions

View File

@@ -22,11 +22,14 @@ jobs:
- name: Validate version
run: |
if ! [[ "${{ inputs.version }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "❌ Invalid version format"
# Remove 'v' prefix if present for validation
VERSION_CLEAN="${{ inputs.version }}"
VERSION_CLEAN="${VERSION_CLEAN#v}"
if ! [[ "$VERSION_CLEAN" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "❌ Invalid version format. Expected format: X.Y.Z or vX.Y.Z"
exit 1
fi
echo "✅ Version format valid"
echo "✅ Version format valid: ${{ inputs.version }}"
- name: Update versions and push
id: push