Clone from public URL, not GITHUB_SERVER_URL (resolves to localhost in runner)
Some checks failed
Mirror to GitHub / mirror (push) Successful in 19s
Build and publish package / package (push) Failing after 3m12s

The Forgejo runner injects GITHUB_SERVER_URL as http://localhost:3002, which
is unreachable from inside the job container. Use the public URL instead.
This commit is contained in:
Breadway 2026-06-13 16:14:13 +08:00
parent 73f01e97b4
commit d454e832d9
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ jobs:
useradd -m builder
git config --global --add safe.directory '*'
git clone --branch "${GITHUB_REF_NAME}" --depth 1 \
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" /home/builder/src
"https://git.breadway.dev/${GITHUB_REPOSITORY}.git" /home/builder/src
cd /home/builder/src
git archive --format=tar.gz --prefix="bread-${VERSION}/" HEAD \
> packaging/arch/bread-${VERSION}.tar.gz