fix: trigger forgejo mirror sync via api
This commit is contained in:
parent
de0694f8e0
commit
9288c99d1d
1 changed files with 1 additions and 8 deletions
9
.github/workflows/sync-to-forgejo.yml
vendored
9
.github/workflows/sync-to-forgejo.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue