diff --git a/.github/workflows/sync-to-forgejo.yml b/.github/workflows/sync-to-forgejo.yml index 31851e5..80b5bbe 100644 --- a/.github/workflows/sync-to-forgejo.yml +++ b/.github/workflows/sync-to-forgejo.yml @@ -20,6 +20,7 @@ jobs: - name: Sync to Forgejo env: FORGEJO_TOKEN: ${{ secrets.FORGEJO_SECRET }} + FORGEJO_OWNER: ${{ secrets.FORGEJO_OWNER || 'ashwin' }} REPO: ${{ github.event.repository.name }} BRANCH: ${{ github.ref_name }} run: | @@ -28,8 +29,8 @@ jobs: export GIT_TRACE=1 export GIT_CURL_VERBOSE=1 - USER="Admin" - TARGET="https://ci.nxtgauge.com/Admin/${REPO}.git" + USER="${FORGEJO_OWNER}" + TARGET="https://ci.nxtgauge.com/${FORGEJO_OWNER}/${REPO}.git" AUTH="$(printf '%s' "${USER}:${FORGEJO_TOKEN}" | base64 -w0)" test -n "${FORGEJO_TOKEN:-}" || (echo "FORGEJO_TOKEN empty" && exit 1)