From c31e46bd0666570af9215cc0c26e72fd1c6a7e9c Mon Sep 17 00:00:00 2001 From: Jonathan Miller <230051081+jmiller-moko@users.noreply.github.com> Date: Tue, 23 Dec 2025 13:54:19 -0600 Subject: [PATCH] Update version_branch.yml --- .github/workflows/version_branch.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/version_branch.yml b/.github/workflows/version_branch.yml index fb9ff09..9227d21 100644 --- a/.github/workflows/version_branch.yml +++ b/.github/workflows/version_branch.yml @@ -310,7 +310,6 @@ jobs: insert = ( nl + '## [' + new_version + '] ' + stamp + nl + - '- VERSION: ' + new_version + nl + '- Version bump' + nl ) lines.insert(insert_at, insert) @@ -488,6 +487,25 @@ jobs: raise SystemExit(0) PY + - name: Enforce update.xml is release generated only + run: | + source "$CI_HELPERS" + moko_init "Enforce update.xml is release generated only" + + if [[ -f "update.xml" ]]; then + echo "[INFO] update.xml present at repo root. Removing because it is release generated only." + + if git ls-files --error-unmatch "update.xml" >/dev/null 2>&1; then + git rm -f "update.xml" + echo "[INFO] update.xml removed from index" + else + rm -f "update.xml" + echo "[INFO] update.xml removed from working tree" + fi + else + echo "[INFO] update.xml not present. No action taken." + fi + - name: Post bump audit (updates.xml date only) run: | source "$CI_HELPERS"