Use git init + fetch instead of clone
Some checks failed
CI / test (push) Failing after 2s

This commit is contained in:
2026-02-01 05:25:59 +00:00
parent 3d88504b69
commit 085ab55efb

View File

@@ -8,9 +8,11 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
run: | run: |
if [ ! -f setup.py ]; then rm -rf * .gitignore 2>/dev/null || true
git clone https://gitea.com/7000pctAUTO/json-to-openapi . git init
fi git remote add origin https://gitea.com/7000pctAUTO/json-to-openapi
git fetch
git checkout main
- name: Install - name: Install
run: | run: |
python3 -m ensurepip --upgrade 2>/dev/null || true python3 -m ensurepip --upgrade 2>/dev/null || true