From ce3a5fc6ef8838867a0b2dc62e5638c20de03e71 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Mon, 6 Apr 2026 20:56:41 +0800 Subject: [PATCH] fix: use direct git clone instead of actions/checkout Replace actions/checkout@v4 (which requires GitHub access) with direct git clone from Gitea to avoid network connectivity issues. --- .gitea/workflows/deploy-dev.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy-dev.yml b/.gitea/workflows/deploy-dev.yml index 0a2d1ad..a95a2b9 100644 --- a/.gitea/workflows/deploy-dev.yml +++ b/.gitea/workflows/deploy-dev.yml @@ -15,9 +15,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 - with: - ref: ${{ github.sha }} + run: | + git clone --depth 1 http://gitea:3000/jimmy/nas-tools.git . + git fetch --depth 1 origin ${{ github.sha }} + git checkout ${{ github.sha }} - name: Warm mirror cache for base images run: | set -u