From ca843bf2556c5ac4b7e7b97d47badd4faad51718 Mon Sep 17 00:00:00 2001 From: Breadway Date: Wed, 17 Jun 2026 14:49:06 +0800 Subject: [PATCH] fix(ci): replace actions/checkout with manual git clone in release 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. --- .forgejo/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 50a0bd7..f85b60b 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -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