From 94f115094e75a305124e12317955a7ea114674c8 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Tue, 5 May 2026 22:04:43 +0100 Subject: [PATCH] ci: replace actions/checkout with manual clone actions/checkout@v4 on a subpath-mounted gitea (ROOT_URL= https://famzheng.me/gitea/) resolves $github.server_url to https://famzheng.me/ (without /gitea/), so the clone fetches https://famzheng.me/fam/nanochat-omni and 404s. Clone manually against the full URL. --- .gitea/workflows/smoke.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/smoke.yml b/.gitea/workflows/smoke.yml index e7c5dbc..c87925f 100644 --- a/.gitea/workflows/smoke.yml +++ b/.gitea/workflows/smoke.yml @@ -8,7 +8,14 @@ jobs: runs-on: gpu timeout-minutes: 30 steps: - - uses: actions/checkout@v4 + - name: checkout + # actions/checkout@v4 mis-resolves server_url on subpath gitea + # (drops /gitea/ prefix), so clone manually. + run: | + git init . + git remote add origin https://famzheng.me/gitea/${{ github.repository }}.git + git fetch --depth=1 origin ${{ github.sha }} + git checkout FETCH_HEAD - name: nvidia-smi run: nvidia-smi --query-gpu=name,memory.free,memory.used --format=csv - name: smoke