From dd019143fe6a331c00a73a1e2a9cdc9e64c7e9de Mon Sep 17 00:00:00 2001 From: Jonathan Miller <1+jmiller@noreply.git.mokoconsulting.tech> Date: Thu, 28 May 2026 20:27:59 +0000 Subject: [PATCH] chore: sync .mokogitea/workflows/auto-release.yml from moko-platform [skip ci] --- .mokogitea/workflows/auto-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.mokogitea/workflows/auto-release.yml b/.mokogitea/workflows/auto-release.yml index a05d0f4..757bfb4 100644 --- a/.mokogitea/workflows/auto-release.yml +++ b/.mokogitea/workflows/auto-release.yml @@ -298,7 +298,8 @@ jobs: git add -A git commit -m "chore(release): build ${VERSION} [skip ci]" \ --author="gitea-actions[bot] " - git push -u origin HEAD + # Detached HEAD on PR merge — push explicitly to main + git push origin HEAD:refs/heads/main # -- STEP 6: Create tag --------------------------------------------------- - name: "Step 6: Create git tag" @@ -389,7 +390,7 @@ jobs: git add updates.xml git commit -m "chore: update stable channel ${VERSION} [skip ci]" \ --author="gitea-actions[bot] " - git push origin HEAD 2>&1 || true + git push origin HEAD:refs/heads/main 2>&1 || true fi # -- STEP 8b: Update release description with changelog ----------------------