Update sync-to-gitea.yml

s
This commit is contained in:
机械小鸽 2024-12-07 17:42:22 +08:00 committed by GitHub
parent 31de08df32
commit a8ba0f3d37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,5 +31,5 @@ jobs:
for branch in $(git branch -r | grep -v '\->'); do for branch in $(git branch -r | grep -v '\->'); do
git checkout --track $branch git checkout --track $branch
# 修复URL中的错误移除多余的 http:// # 修复URL中的错误移除多余的 http://
git push https://your_gitea_user:${{ secrets.GITEA_TOKEN }}@${GITEA_URL}/${GITEA_REPO}.git HEAD:$branch git push http://your_gitea_user:${{ secrets.GITEA_TOKEN }}@${GITEA_URL}/${GITEA_REPO}.git HEAD:$branch
done done