Update sync-to-gitea.yml

This commit is contained in:
CJK_mkp
2025-05-31 11:00:25 +08:00
committed by GitHub
parent 7cea38f49d
commit c5a3f8e7bc
+3 -3
View File
@@ -13,14 +13,14 @@ jobs:
- name: Push to Gitea
env:
GITEA_REPO: ${{ secrets.GITEA_REPO_URL }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_REPO: https://gitea.com/CJKmkp/ICC-CE.git
GITEA_TOKEN: 2cd2e3be72be915d738043b44ec53024ac87271c
run: |
git config --global user.name "GitHub Action"
git config --global user.email "action@github.com"
# 使用 token 认证的正确格式
git remote add gitea https://${{ secrets.2cd2e3be72be915d738043b44ec53024ac87271c }}@https://gitea.com/CJKmkp/ICC-CE.git
git remote add gitea https://${{ secrets.GITEA_TOKEN }}@your-gitea-domain.com/your-username/your-repo.git
# 推送代码到 Gitea
git push -u gitea --all