feat(cli): use updates_xml_sync.php in client-release workflow Step 4 #79

Closed
opened 2026-05-24 08:26:53 +00:00 by jmiller · 1 comment
Owner

Summary

Replace ~35 lines of inline curl/python that push updates.xml to main and dev via Gitea contents API with updates_xml_sync.php.

Current (~35 lines)

Manual curl GET for SHA, curl PUT for update, curl POST for create, per-branch loop with python3 JSON helpers.

Proposed

php /tmp/moko-platform/cli/updates_xml_sync.php \n  --path . --branches main,dev --current main --version "$VERSION"

Impact

~35 lines to 2 lines. CLI handles SHA retrieval, create-vs-update, multi-branch sync.

Affected workflows

  • client-release.yml (Template-Client-WaaS, client-waas-clarksvillefurs)
## Summary Replace ~35 lines of inline curl/python that push `updates.xml` to main and dev via Gitea contents API with `updates_xml_sync.php`. ## Current (~35 lines) Manual curl GET for SHA, curl PUT for update, curl POST for create, per-branch loop with python3 JSON helpers. ## Proposed ```bash php /tmp/moko-platform/cli/updates_xml_sync.php \n --path . --branches main,dev --current main --version "$VERSION" ``` ## Impact ~35 lines to 2 lines. CLI handles SHA retrieval, create-vs-update, multi-branch sync. ## Affected workflows - `client-release.yml` (Template-Client-WaaS, client-waas-clarksvillefurs)
Author
Owner

Test Proof

Run: #10326
Result: All 10 steps passed
Runner: mokogitea-runner-02 with custom moko/runner-images:ubuntu-latest image

Steps

[success] Clean workspace
[success] Checkout
[success] Install dependencies
[success] Setup moko-platform
[success] Read version
[success] Build ZIP          <-- joomla_build.php
[success] Stream releases
[success] Update updates.xml  <-- updates_xml_sync.php
[success] Bump dev version
[success] Summary

Implemented in client-waas-clarksvillefurs and Template-Client-WaaS.

Change

Replaced ~35 lines of inline curl/python API calls with:

php /tmp/moko-platform/cli/updates_xml_sync.php \
  --path . --branches main,dev --current main \
  --version "$VERSION" --token "$TOKEN"
## Test Proof **Run:** [#10326](https://git.mokoconsulting.tech/ClarksvilleFurs/client-waas-clarksvillefurs/actions/runs/10326) **Result:** All 10 steps passed **Runner:** mokogitea-runner-02 with custom `moko/runner-images:ubuntu-latest` image ### Steps ``` [success] Clean workspace [success] Checkout [success] Install dependencies [success] Setup moko-platform [success] Read version [success] Build ZIP <-- joomla_build.php [success] Stream releases [success] Update updates.xml <-- updates_xml_sync.php [success] Bump dev version [success] Summary ``` Implemented in `client-waas-clarksvillefurs` and `Template-Client-WaaS`. ### Change Replaced ~35 lines of inline curl/python API calls with: ```yaml php /tmp/moko-platform/cli/updates_xml_sync.php \ --path . --branches main,dev --current main \ --version "$VERSION" --token "$TOKEN" ```
Sign in to join this conversation.
No labels
Type
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#79