Add version hierarchy validation and CI improvements for version management #28

Merged
Copilot merged 5 commits from copilot/prevent-version-creation-errors into main 2026-01-04 01:30:13 +00:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 2534fd3cae - Show all commits

View File

@@ -85,7 +85,7 @@ validate_prefix() {
validate_version() {
local v="$1"
if ! printf '%s' "$v" | grep -Eq '^[0-9]{2}\.[0-9]{2}\.[0-9]{2}$'; then
if [[ ! "$v" =~ ^[0-9]{2}\.[0-9]{2}\.[0-9]{2}$ ]]; then
die "Invalid version format: $v (expected NN.NN.NN)"
fi
}

View File

@@ -52,7 +52,12 @@ validate_yaml_syntax() {
python3 - "$file" <<'PYEOF'
import sys
try:
import yaml
except ModuleNotFoundError:
print("WARNING: PyYAML module not installed. Install with: pip3 install pyyaml")
sys.exit(0)
file_path = sys.argv[1]