debug: inspect workspace git config
Some checks failed
Mirror to GitHub / mirror (push) Failing after 3s

This commit is contained in:
Breadway 2026-06-17 14:39:30 +08:00
parent 758112d93f
commit 428c3cc566

View file

@ -14,9 +14,10 @@ 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}"
env | grep -iE "^GIT" | sort || echo "(no GIT env vars)" echo "=== workspace git config ==="
git config --list --global | grep -E "url|insteadOf" || echo "(no url rewrites in global gitconfig)" cat "${GITHUB_WORKSPACE}/.git/config" 2>/dev/null || echo "(no workspace .git/config)"
git config --list --system 2>/dev/null | grep -E "url|insteadOf" || echo "(no url rewrites in system gitconfig)" 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 git clone --mirror "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" repo.git
cd repo.git cd repo.git
git push --prune \ git push --prune \