fix: disambiguate main branch checkout in mirror-sync

git checkout main is ambiguous when both origin/main and mirror/main
exist. Use -B to explicitly create from origin/main.
This commit is contained in:
Erich Blume 2026-03-29 00:27:50 -07:00 committed by Forgejo Actions
commit 83c16b7c5e

View file

@ -37,7 +37,7 @@ jobs:
- name: Fast-forward main from mirror
run: |
git checkout main
git checkout -B main origin/main
git merge --ff-only mirror/main
git push origin main