From 9d9f7cbffc79c97a81f66b63a70b673be5b10d60 Mon Sep 17 00:00:00 2001 From: Tracewebstudio Dev Date: Thu, 30 Apr 2026 21:03:52 +0200 Subject: [PATCH] chore(ci): log resolved gitea user and validate ls-remote --- .github/workflows/sync-to-gitea.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/sync-to-gitea.yml b/.github/workflows/sync-to-gitea.yml index 6a7f33e..4b69353 100644 --- a/.github/workflows/sync-to-gitea.yml +++ b/.github/workflows/sync-to-gitea.yml @@ -42,7 +42,11 @@ jobs: TARGET="https://ci.nxtgauge.com/Admin/${REPO}.git" AUTH="$(printf '%s' "${GITEA_USER}:${GITEA_TOKEN}" | base64 | tr -d '\n')" + echo "Using Gitea user: ${GITEA_USER}" + echo "Sync target: Admin/${REPO}.git" + curl -fsS -H "Authorization: Basic ${AUTH}" "${TARGET}/info/refs?service=git-receive-pack" >/dev/null + git -c http.extraheader="Authorization: Basic ${AUTH}" ls-remote "${TARGET}" >/dev/null git remote remove gitea 2>/dev/null || true git remote add gitea "${TARGET}"