Skip to content

Commit

Permalink
add rc validation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqliu committed Dec 4, 2024
1 parent 52bd948 commit b878ccf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ jobs:
exit 1
fi
# RC is already validated as a number via workflow_dispatch inputs
# Validate rc (e.g., 1)
if [[ ! "$RC" =~ ^[0-9]+$ ]]; then
echo "Error: rc ($RC) must be in the format: <number>"
exit 1
fi
fi
# Export variables for future steps
Expand Down

0 comments on commit b878ccf

Please sign in to comment.