diff --git a/templates/workflows/joomla/auto-release.yml.template b/templates/workflows/joomla/auto-release.yml.template index 11386a4..b68c738 100644 --- a/templates/workflows/joomla/auto-release.yml.template +++ b/templates/workflows/joomla/auto-release.yml.template @@ -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] " || 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] " || true + git push origin main || true + git checkout "$CURRENT_BRANCH" + fi fi echo "### Joomla Packages" >> $GITHUB_STEP_SUMMARY