Skip to content

Commit b878ccf

Browse files
committed
add rc validation
1 parent 52bd948 commit b878ccf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/python-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ jobs:
6868
exit 1
6969
fi
7070
71-
# RC is already validated as a number via workflow_dispatch inputs
71+
# Validate rc (e.g., 1)
72+
if [[ ! "$RC" =~ ^[0-9]+$ ]]; then
73+
echo "Error: rc ($RC) must be in the format: <number>"
74+
exit 1
75+
fi
7276
fi
7377
7478
# Export variables for future steps

0 commit comments

Comments
 (0)