Sync from GitHub main #1
@@ -62,7 +62,8 @@ jobs:
|
||||
git config user.email "github-sync@users.noreply.github.com"
|
||||
git remote remove gitea >/dev/null 2>&1 || true
|
||||
git remote add gitea "https://${GITEA_HOST}/${GITEA_REPO}.git"
|
||||
git push -f gitea "HEAD:refs/heads/${SYNC_BRANCH}"
|
||||
git -c credential.helper= -c credential.useHttpPath=true \
|
||||
push -f gitea "HEAD:refs/heads/${SYNC_BRANCH}"
|
||||
|
||||
http_code=$(curl -sS -o "$response_file" -w "%{http_code}" -X POST \
|
||||
"https://${GITEA_HOST}/api/v1/repos/${GITEA_REPO}/pulls" \
|
||||
|
||||
Reference in New Issue
Block a user