From 73e05ef0ad1340d41d65f2840eb4b4c1f04049b3 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Tue, 7 Apr 2026 10:40:36 +0100 Subject: [PATCH] ci: fix checkout - replace actions/checkout@v4 with raw git (no node in host runner) --- .gitea/workflows/deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f48901f..8d0c548 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,7 +10,12 @@ jobs: runs-on: self-hosted steps: - name: Checkout - uses: actions/checkout@v4 + run: | + if [ -d .git ]; then + git fetch origin master && git reset --hard origin/master && git clean -fd + else + git clone ${{ gitea.server_url }}/${{ gitea.repository }} . && git checkout ${{ gitea.sha }} + fi - name: Install frontend dependencies run: cd web && npm ci