From 9288c99d1d19a8107ca2893b9ea626a358684687 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Sivakumar Date: Thu, 11 Jun 2026 19:14:46 +0530 Subject: [PATCH] fix: trigger forgejo mirror sync via api --- .github/workflows/sync-to-forgejo.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/sync-to-forgejo.yml b/.github/workflows/sync-to-forgejo.yml index ad5b790..0bb6d72 100644 --- a/.github/workflows/sync-to-forgejo.yml +++ b/.github/workflows/sync-to-forgejo.yml @@ -37,12 +37,5 @@ jobs: curl -fsS -H "Authorization: Basic ${AUTH}" https://ci.nxtgauge.com/api/v1/user >/dev/null curl -fsS -H "Authorization: Basic ${AUTH}" "${TARGET}/info/refs?service=git-receive-pack" >/dev/null - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git config --global http.version HTTP/1.1 - git config --global http.postBuffer 524288000 - git remote remove forgejo 2>/dev/null || true - git remote add forgejo "${TARGET}" + curl -fsS -X POST -H "Authorization: Basic ${AUTH}" "https://ci.nxtgauge.com/api/v1/repos/${FORGEJO_OWNER}/${REPO}/mirror-sync" >/dev/null - git -c http.extraheader="Authorization: Basic ${AUTH}" push forgejo "HEAD:${BRANCH}" --force - git -c http.extraheader="Authorization: Basic ${AUTH}" push forgejo --tags --force