fix: point forgejo sync to ashwin namespace
This commit is contained in:
parent
1b1d98ebee
commit
fc772c2acb
1 changed files with 3 additions and 2 deletions
5
.github/workflows/sync-to-forgejo.yml
vendored
5
.github/workflows/sync-to-forgejo.yml
vendored
|
|
@ -20,6 +20,7 @@ jobs:
|
||||||
- name: Sync to Forgejo
|
- name: Sync to Forgejo
|
||||||
env:
|
env:
|
||||||
FORGEJO_TOKEN: ${{ secrets.FORGEJO_SECRET }}
|
FORGEJO_TOKEN: ${{ secrets.FORGEJO_SECRET }}
|
||||||
|
FORGEJO_OWNER: ${{ secrets.FORGEJO_OWNER || 'ashwin' }}
|
||||||
REPO: ${{ github.event.repository.name }}
|
REPO: ${{ github.event.repository.name }}
|
||||||
BRANCH: ${{ github.ref_name }}
|
BRANCH: ${{ github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -28,8 +29,8 @@ jobs:
|
||||||
export GIT_TRACE=1
|
export GIT_TRACE=1
|
||||||
export GIT_CURL_VERBOSE=1
|
export GIT_CURL_VERBOSE=1
|
||||||
|
|
||||||
USER="Admin"
|
USER="${FORGEJO_OWNER}"
|
||||||
TARGET="https://ci.nxtgauge.com/Admin/${REPO}.git"
|
TARGET="https://ci.nxtgauge.com/${FORGEJO_OWNER}/${REPO}.git"
|
||||||
AUTH="$(printf '%s' "${USER}:${FORGEJO_TOKEN}" | base64 -w0)"
|
AUTH="$(printf '%s' "${USER}:${FORGEJO_TOKEN}" | base64 -w0)"
|
||||||
|
|
||||||
test -n "${FORGEJO_TOKEN:-}" || (echo "FORGEJO_TOKEN empty" && exit 1)
|
test -n "${FORGEJO_TOKEN:-}" || (echo "FORGEJO_TOKEN empty" && exit 1)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue