From 3ebdfb45b4bd6e162ba33807f9cb6f9c9ebd5e89 Mon Sep 17 00:00:00 2001 From: Peter Zhang <18501667167@qq.com> Date: Fri, 29 May 2026 22:02:48 +0800 Subject: [PATCH] fix: use git clone instead of actions/checkout, use cmd shell for issue step --- .gitea/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 89bc93a..b6ece2d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,6 +10,12 @@ jobs: test: runs-on: shell steps: + - name: Checkout code from Gitea + run: | + git clone --depth 1 http://localhost:3000/pzhang_zywl/document_analyzer.git . + git fetch origin ${{ github.sha }} + git checkout ${{ github.sha }} + - name: Install dependencies run: pip install -r requirements.txt @@ -18,10 +24,6 @@ jobs: - name: Create issue on failure if: failure() + shell: cmd run: | - python scripts/create_failure_issue.py \ - --sha "${{ github.sha }}" \ - --branch "${{ github.ref_name }}" \ - --run "${{ github.run_number }}" \ - --message "${{ github.event.head_commit.message }}" \ - --api-token "${{ secrets.document_analyzer }}" + python scripts/create_failure_issue.py --sha "${{ github.sha }}" --branch "${{ github.ref_name }}" --run "${{ github.run_number }}" --message "${{ github.event.head_commit.message }}" --api-token "${{ secrets.document_analyzer }}"