debug: print git config and env in mirror step

This commit is contained in:
Breadway 2026-06-17 14:35:41 +08:00
parent 580a51c350
commit 8e1f0babb8

View file

@ -12,6 +12,9 @@ jobs:
- name: Mirror to GitHub - name: Mirror to GitHub
run: | run: |
set -euo pipefail set -euo pipefail
echo "GITHUB_REPOSITORY=${GITHUB_REPOSITORY}"
echo "GITHUB_SERVER_URL=${GITHUB_SERVER_URL:-unset}"
git config --list --global | grep -E "url|insteadOf" || echo "(no url rewrites)"
git clone --mirror "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" repo.git git clone --mirror "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" repo.git
cd repo.git cd repo.git
git push --prune \ git push --prune \