From 306472f6a1311f49c2cab4aa39764ce21fceea30 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 12 May 2026 19:24:20 +0000 Subject: [PATCH] feat: use manifest_read.php for platform detection [skip ci] --- .mokogitea/workflows/pr-check.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.mokogitea/workflows/pr-check.yml b/.mokogitea/workflows/pr-check.yml index 7eb9267..ea00588 100644 --- a/.mokogitea/workflows/pr-check.yml +++ b/.mokogitea/workflows/pr-check.yml @@ -108,11 +108,8 @@ jobs: - name: Detect platform id: platform run: | - # Read platform from XML manifest ( tag) or plain text fallback - MANIFEST_FILE=".mokogitea/.manifest.xml" - [ ! -f "$MANIFEST_FILE" ] && MANIFEST_FILE=".mokogitea/.moko-platform" - PLATFORM=$(sed -n 's/.*\([^<]*\)<\/platform>.*/\1/p' "$MANIFEST_FILE" 2>/dev/null | head -1) - [ -z "$PLATFORM" ] && PLATFORM=$(cat "$MANIFEST_FILE" 2>/dev/null | tr -d '[:space:]') + # Parse manifest for platform detection + PLATFORM=$(php /tmp/mokostandards-api/cli/manifest_read.php --path . --field platform 2>/dev/null) [ -z "$PLATFORM" ] && PLATFORM="generic" echo "platform=$PLATFORM" >> "$GITHUB_OUTPUT"