fix(ci): mirror — push refs/heads + refs/tags, not all refs
All checks were successful
Mirror to GitHub / mirror (push) Successful in 6s
CI / frontend (pull_request) Successful in 6m59s
CI / backend (pull_request) Successful in 11m37s
CI / e2e (pull_request) Successful in 9m56s

`git push --mirror` pushes everything under refs/* including refs/pull/*,
which GitHub rejects with "deny updating a hidden ref" — GitHub manages
its own refs/pull/N/head namespace and won't let outside pushers touch it.

Switching to `--all --prune --force` + `--tags --prune --force` scopes the
push to refs/heads/* and refs/tags/* only (same as the original lines)
while keeping --prune so branch/tag deletions still propagate.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-29 13:34:22 -04:00
parent 16a07e1682
commit d5d4405ac2

View File

@@ -15,4 +15,8 @@ jobs:
git clone --mirror https://gitea.resolutionflow.com/chihlasm/resolutionflow.git repo
cd repo
git remote add github https://x-access-token:${{ secrets.GH_MIRROR_TOKEN }}@github.com/${{ secrets.GH_MIRROR_REPO }}
git push github --mirror
# --all + --tags scopes the push to refs/heads/* and refs/tags/*,
# avoiding refs/pull/* (which GitHub refuses with "deny updating a
# hidden ref"). --prune makes deletions on the Gitea side propagate.
git push github --all --prune --force
git push github --tags --prune --force