fix: clear /workspace before clone to avoid 'already exists' error
Some checks failed
CI — Test & Build / Test & Build (push) Failing after 10s

This commit is contained in:
Forge
2026-03-06 13:49:54 +08:00
parent 050e291f73
commit 20424af7db

View File

@@ -20,9 +20,9 @@ jobs:
- name: Checkout - name: Checkout
run: | run: |
git config --global http.sslVerify false git config --global http.sslVerify false
rm -rf /workspace
git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git /workspace git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git /workspace
cd /workspace cd /workspace && git checkout ${{ gitea.sha }}
git checkout ${{ gitea.sha }}
working-directory: / working-directory: /
- name: Install dependencies - name: Install dependencies