From 840f07eaa987ffc4bb8dc0f96fb95cbd9ba3e131 Mon Sep 17 00:00:00 2001 From: Hewston Fox Date: Mon, 9 Mar 2026 01:00:27 +0200 Subject: [PATCH] chore: try fix pipeline --- .gitea/workflows/check-pull-request.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/check-pull-request.yaml b/.gitea/workflows/check-pull-request.yaml index 80bb6df..3c38add 100644 --- a/.gitea/workflows/check-pull-request.yaml +++ b/.gitea/workflows/check-pull-request.yaml @@ -10,8 +10,15 @@ jobs: prepare: runs-on: ubuntu-latest steps: - - name: Setup Checkout - uses: actions/checkout@v6 + - name: Checkout + run: | + GITEA_HOST="${GITEA_HOST_IP:-172.20.0.1}" + git clone --depth 1 "http://oauth2:${GITHUB_TOKEN}@${GITEA_HOST}:3000/${{ github.repository }}.git" . + git fetch --depth 1 origin "${{ github.sha }}" + git checkout -q "${{ github.sha }}" + env: + GITHUB_TOKEN: ${{ github.token }} + GITEA_HOST_IP: ${{ secrets.GITEA_HOST_IP }} - name: Setup pnpm uses: pnpm/action-setup@v4