diff --git a/.gitea/workflows/sync.yml b/.gitea/workflows/sync.yml index 85f277d..236397c 100644 --- a/.gitea/workflows/sync.yml +++ b/.gitea/workflows/sync.yml @@ -26,8 +26,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_REPO: ${{ secrets.GH_REPO }} run: | - git remote add github https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}.git || true - git remote set-url github https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}.git + git config --global user.name "Gitea Actions" + git config --global user.email "actions@gitea.local" + git remote remove github 2>/dev/null || true + git remote add github https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}.git git push github --all --force git push github --tags --force