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"