From a9b3354bdee7c7358951344647831b59f13c1889 Mon Sep 17 00:00:00 2001 From: Carsten Rehfeld Date: Thu, 14 May 2026 15:40:08 +0200 Subject: [PATCH] fix(ci): replace checkout action with git clone (no node on host runner) actions/checkout@v3 is a JavaScript action requiring node in PATH. Host runners have no node. Replace with direct git clone/fetch. Co-Authored-By: Mira --- .gitea/workflows/deploy.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f2c493d..e49aa89 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -7,11 +7,16 @@ on: jobs: deploy: runs-on: [self-hosted, host] - timeout-minutes: 15 + timeout-minutes: 20 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 + - name: Checkout + run: | + if [ -d .git ]; then + git fetch --depth=1 origin main + git reset --hard FETCH_HEAD + else + git clone --depth=1 http://localhost:3001/apix/apix-mvp.git . + fi - name: Deploy (rolling zero-downtime) run: bash scripts/deploy-bluegreen.sh