From 085ab55efbe6db2b57902080b85df75645188211 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 05:25:59 +0000 Subject: [PATCH] Use git init + fetch instead of clone --- .gitea/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 715e42c..b950b3e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,9 +8,11 @@ jobs: steps: - name: Checkout run: | - if [ ! -f setup.py ]; then - git clone https://gitea.com/7000pctAUTO/json-to-openapi . - fi + rm -rf * .gitignore 2>/dev/null || true + git init + git remote add origin https://gitea.com/7000pctAUTO/json-to-openapi + git fetch + git checkout main - name: Install run: | python3 -m ensurepip --upgrade 2>/dev/null || true