From b57de90cefe044efc1dc74d3ddc256a4a0e7fd92 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 21 Apr 2026 21:09:04 -0500 Subject: [PATCH] fix: add VERSION header to updates.xml in all workflow templates Auto-release and update-server now write the copyright + VERSION comment header when generating/rebuilding updates.xml. Updated updates.xml.template scaffold to match. Co-Authored-By: Claude Opus 4.6 (1M context) --- templates/joomla/updates.xml.template | 24 ++++--------------- .../joomla/auto-release.yml.template | 7 +++++- .../joomla/update-server.yml.template | 14 +++++++++-- 3 files changed, 23 insertions(+), 22 deletions(-) diff --git a/templates/joomla/updates.xml.template b/templates/joomla/updates.xml.template index 3c6ffb7..8e7fa4c 100644 --- a/templates/joomla/updates.xml.template +++ b/templates/joomla/updates.xml.template @@ -1,23 +1,9 @@ - - This file is the update server manifest for {{EXTENSION_NAME}}. - The Joomla installer polls this URL to check for new versions. - - The manifest.xml in this repository must reference BOTH update servers: - - - https://git.mokoconsulting.tech/MokoConsulting/{{REPO_NAME}}/raw/branch/main/updates.xml - - - https://raw.githubusercontent.com/mokoconsulting-tech/{{REPO_NAME}}/main/updates.xml - - - - When a new release is made, run `make release` or the release workflow to - prepend a new entry to this file automatically. ---> {{EXTENSION_NAME}} diff --git a/templates/workflows/joomla/auto-release.yml.template b/templates/workflows/joomla/auto-release.yml.template index ca9aaf6..b4457c9 100644 --- a/templates/workflows/joomla/auto-release.yml.template +++ b/templates/workflows/joomla/auto-release.yml.template @@ -349,7 +349,12 @@ jobs: # -- Write updates.xml with cascading channels # Stable release updates ALL channels (development, alpha, beta, rc, stable) { - printf '%s\n' '' + printf '%s\n' "" + printf '%s\n' "" + printf '%s\n' "" printf '%s\n' '' build_entry "development" build_entry "alpha" diff --git a/templates/workflows/joomla/update-server.yml.template b/templates/workflows/joomla/update-server.yml.template index 1afd7f3..f3e40dc 100644 --- a/templates/workflows/joomla/update-server.yml.template +++ b/templates/workflows/joomla/update-server.yml.template @@ -298,7 +298,12 @@ jobs: [ -z "$TARGETS" ] && TARGETS="${STABILITY}" if [ ! -f "updates.xml" ]; then - printf '%s\n' '' > updates.xml + printf '%s\n' "" > updates.xml + printf '%s\n' "" >> updates.xml + printf '%s\n' "" >> updates.xml printf '%s\n' '' >> updates.xml cat /tmp/new_entry.xml >> updates.xml printf '\n%s\n' '' >> updates.xml @@ -329,7 +334,12 @@ jobs: if [ $? -ne 0 ]; then # Fallback: rebuild keeping other stability entries { - printf '%s\n' '' + printf '%s\n' "" + printf '%s\n' "" + printf '%s\n' "" printf '%s\n' '' for TAG in stable rc development; do [ "$TAG" = "${STABILITY}" ] && continue