Public Access
Fix: auto-release pushes updates.xml to main for update server
When releasing from a non-main branch, updates.xml is cherry-picked to main so the Joomla update server always serves current data. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -593,10 +593,23 @@ jobs:
|
||||
f.write(content)
|
||||
PYEOF
|
||||
|
||||
CURRENT_BRANCH="${{ github.ref_name }}"
|
||||
git add updates.xml
|
||||
git commit -m "chore(release): ZIP + tar.gz for ${VERSION} [skip ci]" \
|
||||
--author="gitea-actions[bot] <gitea-actions[bot]@mokoconsulting.tech>" || true
|
||||
git push || true
|
||||
|
||||
# Also push updates.xml to main (where the update server reads from)
|
||||
if [ "$CURRENT_BRANCH" != "main" ]; then
|
||||
git fetch origin main
|
||||
git checkout main
|
||||
git checkout "$CURRENT_BRANCH" -- updates.xml
|
||||
git add updates.xml
|
||||
git commit -m "chore: update stable channel to ${VERSION} on main [skip ci]" \
|
||||
--author="gitea-actions[bot] <gitea-actions[bot]@mokoconsulting.tech>" || true
|
||||
git push origin main || true
|
||||
git checkout "$CURRENT_BRANCH"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "### Joomla Packages" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
Reference in New Issue
Block a user