From beb51b6f2a3b6120c944d04ce406d2ed9087cf3f Mon Sep 17 00:00:00 2001 From: Jonathan Miller <230051081+jmiller-moko@users.noreply.github.com> Date: Tue, 23 Dec 2025 19:39:10 -0600 Subject: [PATCH] Update release_from_version.yml --- .github/workflows/release_from_version.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release_from_version.yml b/.github/workflows/release_from_version.yml index 0eeebbc..baae7de 100644 --- a/.github/workflows/release_from_version.yml +++ b/.github/workflows/release_from_version.yml @@ -272,8 +272,20 @@ jobs: # Require a manifest at the root of ROOT. MANIFEST="" + + # Primary: templateDetails.xml at root if [ -f "${ROOT}/templateDetails.xml" ]; then MANIFEST="${ROOT}/templateDetails.xml" + + # Secondary: standard Joomla template layouts + elif [ -f "src/templates/templateDetails.xml" ]; then + MANIFEST="src/templates/templateDetails.xml" + + # Tertiary: namespaced Joomla template layout src/templates//templateDetails.xml + elif find "src/templates" -mindepth 2 -maxdepth 2 -name "templateDetails.xml" -type f | grep -q .; then + MANIFEST="$(find "src/templates" -mindepth 2 -maxdepth 2 -name "templateDetails.xml" -type f | head -n 1)" + + # Fallback: any root-level XML with an element else while IFS= read -r -d '' f; do if grep -qE ']' "${f}"; then @@ -282,6 +294,8 @@ jobs: fi done < <(find "${ROOT}" -maxdepth 1 -type f -name "*.xml" -print0) fi + done < <(find "${ROOT}" -maxdepth 1 -type f -name "*.xml" -print0) + fi if [ -z "${MANIFEST}" ]; then echo "ERROR: No Joomla manifest XML found at root of ${ROOT}."