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:51 +08:00
parent ce0b7740d6
commit ca95ac0693

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/breadpad.git" \ "https://x-access-token:${{ secrets.MIRROR_TOKEN }}@github.com/Breadway/breadpad.git" \
'+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*' '+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*'