From 946b51a801ce327a33cabbb6dfc6ac9231efdae2 Mon Sep 17 00:00:00 2001 From: hoelee Date: Sun, 6 Sep 2026 04:24:00 +0800 Subject: [PATCH] Fix CI: self-contained checkout (no GitHub actions) --- .gitea/workflows/deploy.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 25b577e..16428dc 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -9,12 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 22 + run: | + git config --global --add safe.directory '*' + git clone --depth 1 "https://git.hoelee.com/hoelee/hoelee-blog.git" . + git checkout $GITHUB_SHA 2>/dev/null || true - name: Install dependencies run: npm ci