chore: force-sync .mokogitea/workflows/pre-release.yml [skip ci]

This commit is contained in:
2026-05-12 19:30:05 +00:00
parent 8c5f74a44e
commit 2db218d320
+3 -4
View File
@@ -55,10 +55,9 @@ jobs:
- name: Detect platform
id: platform
run: |
# Parse .manifest.xml via manifest_read.php
php /tmp/mokostandards-api/cli/manifest_read.php --path . --github-output 2>/dev/null || true
PLATFORM=$(php /tmp/mokostandards-api/cli/manifest_read.php --path . --field platform 2>/dev/null)
[ -z "$PLATFORM" ] && PLATFORM=$(cat ".mokogitea/.manifest.xml" 2>/dev/null | tr -d '[:space:]')
# Read platform from XML manifest (<platform> tag) or plain text fallback
PLATFORM=$(sed -n 's/.*<platform>\([^<]*\)<\/platform>.*/\1/p' .mokogitea/manifest.xml 2>/dev/null | head -1)
[ -z "$PLATFORM" ] && PLATFORM=$(cat .mokogitea/manifest.xml 2>/dev/null | tr -d '[:space:]')
[ -z "$PLATFORM" ] && PLATFORM="generic"
echo "platform=$PLATFORM" >> "$GITHUB_OUTPUT"
MANIFEST=$(find . -maxdepth 3 -name "*.xml" ! -path "./.git/*" -exec grep -l '<extension' {} \; 2>/dev/null | head -1)