From 93cacf15709de531510ab1bdb24916413f065a28 Mon Sep 17 00:00:00 2001 From: Jonathan Miller <230051081+jmiller-moko@users.noreply.github.com> Date: Tue, 23 Dec 2025 15:44:02 -0600 Subject: [PATCH] Update version_branch.yml --- .github/workflows/version_branch.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/version_branch.yml b/.github/workflows/version_branch.yml index ee6c4b8..4eb9c2f 100644 --- a/.github/workflows/version_branch.yml +++ b/.github/workflows/version_branch.yml @@ -269,19 +269,17 @@ jobs: moko_init "Version bump" python3 - <<'PY' - import json - import os - import re - from pathlib import Path - from collections import defaultdict - from datetime import datetime, timezone - - new_version = (os.environ.get("NEW_VERSION") or "").strip() - if not new_version: - raise SystemExit("[FATAL] NEW_VERSION env var missing") - - report_only = (os.environ.get("REPORT_ONLY") or "").strip().lower() == "true" - stamp = datetime.now(timezone.utc).strftime("%Y-%m-%d") - root = Path(".").resolve() - header_re = re.compile(r"(?im)(VERSION[ \\t]*:[ \\t]*)([0-9]{2}[.][0-9]{2}[.][0-9]{2})") +import json +import os +import re +from pathlib import Path +from collections import defaultdict +from datetime import datetime, timezone +new_version = (os.environ.get("NEW_VERSION") or "").strip() +if not new_version: + raise SystemExit("[FATAL] NEW_VERSION env var missing") +report_only = (os.environ.get("REPORT_ONLY") or "").strip().lower() == "true" +stamp = datetime.now(timezone.utc).strftime("%Y-%m-%d") +root = Path(".").resolve() + header_re = re.compile(r"(?im)(VERSION[ \t]*:[ \t]*)([0-9]{2}[.][0-9]{2}[.][0-9]{2})") manifest_marker_re = re.compile(r"(?is)