refactor: pre-release.yml should use existing CLI tools #163

Closed
opened 2026-05-26 17:51:33 +00:00 by jmiller · 2 comments
Owner

Problem

pre-release.yml duplicates logic that exists as CLI tools:

  1. Platform detection via manual sed instead of manifest_read.php
  2. Element detection (28 lines) instead of manifest_element.php
  3. Inline php -r for updates.xml instead of updates_xml_build.php

Solution

Replace inline logic with CLI tool calls. Reduces pre-release.yml by ~65 lines and eliminates drift between workflows.

Files

  • pre-release.yml (update)
## Problem pre-release.yml duplicates logic that exists as CLI tools: 1. Platform detection via manual sed instead of manifest_read.php 2. Element detection (28 lines) instead of manifest_element.php 3. Inline php -r for updates.xml instead of updates_xml_build.php ## Solution Replace inline logic with CLI tool calls. Reduces pre-release.yml by ~65 lines and eliminates drift between workflows. ## Files - pre-release.yml (update)
jmiller added the ci-cdbuild labels 2026-05-26 17:51:33 +00:00
Author
Owner

Branch created: feature/163-refactor-pre-release-yml-should-use-exis

git fetch origin
git checkout feature/163-refactor-pre-release-yml-should-use-exis
Branch created: [`feature/163-refactor-pre-release-yml-should-use-exis`](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/src/branch/feature/163-refactor-pre-release-yml-should-use-exis) ```bash git fetch origin git checkout feature/163-refactor-pre-release-yml-should-use-exis ```
Author
Owner

Proof

Commit 1dba0c3 on dev. Replaced 3 inline blocks with CLI tools:

  • Platform detection → manifest_read.php
  • Element detection (28 lines) → manifest_element.php (4 lines)
  • updates.xml inline PHP (25 lines) → updates_xml_build.php (3 lines)

Net: -85 lines, +14 lines = 71 lines removed

## Proof Commit 1dba0c3 on dev. Replaced 3 inline blocks with CLI tools: - Platform detection → manifest_read.php - Element detection (28 lines) → manifest_element.php (4 lines) - updates.xml inline PHP (25 lines) → updates_xml_build.php (3 lines) Net: -85 lines, +14 lines = **71 lines removed**
Sign in to join this conversation.
No labels build ci-cd
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#163