Rename mirror secret to MIRROR_TOKEN (GITHUB_ prefix is reserved)

Forgejo/gitea rejects user secret names starting with GITHUB_.
This commit is contained in:
Breadway 2026-06-13 16:10:50 +08:00
parent 43df888aa1
commit cbb1cf03d6

View file

@ -17,5 +17,5 @@ jobs:
# Mirror only branches and tags (not refs/pull/*, which GitHub rejects); # Mirror only branches and tags (not refs/pull/*, which GitHub rejects);
# --prune deletes GitHub refs that no longer exist on Forgejo. # --prune deletes GitHub refs that no longer exist on Forgejo.
git push --prune \ git push --prune \
"https://x-access-token:${{ secrets.GITHUB_MIRROR_TOKEN }}@github.com/Breadway/breadbox.git" \ "https://x-access-token:${{ secrets.MIRROR_TOKEN }}@github.com/Breadway/breadbox.git" \
'+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*' '+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*'