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

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.
This commit is contained in:
Breadway 2026-06-17 14:49:06 +08:00
parent 4bb2fd43ca
commit ca843bf255

View file

@ -12,7 +12,10 @@ jobs:
build: build:
runs-on: [self-hosted, hestia] runs-on: [self-hosted, hestia]
steps: 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 - name: build
run: cargo build --release --locked run: cargo build --release --locked