This commit is contained in:
parent
428c3cc566
commit
7f87ef311c
1 changed files with 1 additions and 5 deletions
|
|
@ -14,11 +14,7 @@ jobs:
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
echo "GITHUB_REPOSITORY=${GITHUB_REPOSITORY}"
|
echo "GITHUB_REPOSITORY=${GITHUB_REPOSITORY}"
|
||||||
echo "GITHUB_SERVER_URL=${GITHUB_SERVER_URL:-unset}"
|
echo "GITHUB_SERVER_URL=${GITHUB_SERVER_URL:-unset}"
|
||||||
echo "=== workspace git config ==="
|
GIT_CURL_VERBOSE=1 git clone --mirror "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" repo.git 2>&1 | head -40 || true
|
||||||
cat "${GITHUB_WORKSPACE}/.git/config" 2>/dev/null || echo "(no workspace .git/config)"
|
|
||||||
echo "=== all git config ==="
|
|
||||||
git config --list 2>/dev/null | grep -E "url|insteadOf" || echo "(no url rewrites anywhere)"
|
|
||||||
git clone --mirror "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" repo.git
|
|
||||||
cd repo.git
|
cd repo.git
|
||||||
git push --prune \
|
git push --prune \
|
||||||
"https://x-access-token:${{ secrets.MIRROR_TOKEN }}@github.com/Breadway/breadpaper.git" \
|
"https://x-access-token:${{ secrets.MIRROR_TOKEN }}@github.com/Breadway/breadpaper.git" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue