fix(ci): replace actions/checkout with manual git clone in release
Some checks failed
Mirror to GitHub / mirror (push) Failing after 3s
release / build (push) Failing after 2s
Build and publish package / package (push) Failing after 26s

actions/checkout uses GITHUB_SERVER_URL=http://localhost:3002 which is
unreachable from inside the Docker container. Use the public Forgejo URL
directly, matching the pattern used by package.yml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Breadway 2026-06-17 14:49:06 +08:00
parent 0ee60d179c
commit 04927b773b

View file

@ -12,7 +12,10 @@ jobs:
build:
runs-on: [self-hosted, hestia]
steps:
- uses: actions/checkout@v4
- name: checkout
run: |
git clone --branch "${GITHUB_REF_NAME}" --depth 1 \
"https://git.breadway.dev/${GITHUB_REPOSITORY}.git" .
- name: build
run: cargo build --release --locked