From b41124b141bbf6d02629e3209f6375d9b96e555f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20M=C3=B6rling?= Date: Tue, 19 May 2026 16:32:47 +0200 Subject: [PATCH] fix: use git init + fetch checkout to handle non-empty workspace - Replace git clone . with git init + git fetch + git checkout FETCH_HEAD Runner pre-creates workspace directory, so git clone . fails - Use GITHUB_SHA to fetch exact commit, matching original checkout behavior - Add DOCKER_HOST=tcp://dind:2375 to E2E job step env --- .forgejo/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 34445b4..c3f55aa 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -13,8 +13,10 @@ jobs: steps: - name: Checkout repository run: | - git clone --depth 1 \ - https://x-access-token:${FORGEJO_TOKEN}@srvr.nu/git/jocke/bilhej.git . + git init + git remote add origin https://x-access-token:${FORGEJO_TOKEN}@srvr.nu/git/jocke/bilhej.git + git fetch --depth 1 origin ${GITHUB_SHA} + git checkout FETCH_HEAD - uses: actions/setup-node@v4 with: @@ -66,10 +68,14 @@ jobs: steps: - name: Checkout repository run: | - git clone --depth 1 \ - https://x-access-token:${FORGEJO_TOKEN}@srvr.nu/git/jocke/bilhej.git . + git init + git remote add origin https://x-access-token:${FORGEJO_TOKEN}@srvr.nu/git/jocke/bilhej.git + git fetch --depth 1 origin ${GITHUB_SHA} + git checkout FETCH_HEAD - name: Run E2E test stack + env: + DOCKER_HOST: tcp://dind:2375 run: | docker compose \ -f docker-compose.ci.yml \