fix: clear /workspace before clone to avoid 'already exists' error
Some checks failed
CI — Test & Build / Test & Build (push) Failing after 10s
Some checks failed
CI — Test & Build / Test & Build (push) Failing after 10s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user