From 324baff9b97a5ea68eb7b02ce72ee1fb79ba6a4e Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Thu, 28 May 2026 11:11:43 -0500 Subject: [PATCH] fix: add second version_set_platform pass before release commit Run version_set_platform.php and version_check.php --fix a second time right before the commit to catch any manifest files that got stale during the build/release steps. Also add debug output to diagnose commit step issues. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- .mokogitea/workflows/auto-release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.mokogitea/workflows/auto-release.yml b/.mokogitea/workflows/auto-release.yml index 1c9dc6f..0191258 100644 --- a/.mokogitea/workflows/auto-release.yml +++ b/.mokogitea/workflows/auto-release.yml @@ -351,9 +351,16 @@ jobs: run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" - # Final version consistency check before commit + # Re-align all version files (second pass catches anything the build touched) + php /tmp/moko-platform-api/cli/version_set_platform.php \ + --path . --version "$VERSION" --branch main 2>/dev/null || true php /tmp/moko-platform-api/cli/version_check.php --path . --fix 2>/dev/null || true + echo "=== Pre-commit version check ===" + php /tmp/moko-platform-api/cli/version_check.php --path . || true + echo "=== Files changed ===" + git status --short + git config --local user.email "gitea-actions[bot]@mokoconsulting.tech" git config --local user.name "gitea-actions[bot]" git remote set-url origin "https://jmiller:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git"