ci: use fetch+reset for force push safety
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 39s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 39s
This commit is contained in:
parent
997b3c0cdb
commit
644d62681e
@ -14,7 +14,7 @@ jobs:
|
||||
- name: Checkout latest code
|
||||
run: |
|
||||
if [ -d /tmp/api-server ]; then
|
||||
cd /tmp/api-server && git pull
|
||||
cd /tmp/api-server && git fetch origin && git reset --hard origin/main
|
||||
else
|
||||
git clone http://10.2.0.7:3000/wangdl/api-server.git /tmp/api-server
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user