From 6defbf92e0ad9ca6372bf66721be3ff0c8565ef5 Mon Sep 17 00:00:00 2001 From: codex Date: Wed, 11 Mar 2026 16:44:56 +0800 Subject: [PATCH] ci: avoid external actions checkout by cloning local Gitea repo --- .gitea/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 7bfcce8..29a33c4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,7 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v4 + run: | + git clone "http://172.17.0.1:3000/${{ github.repository }}.git" . + git checkout "${{ github.sha }}" - name: Create .env.production from secrets run: |