mirror of
https://github.com/complexcaresolutions/frontend.sensualmoment.de.git
synced 2026-03-17 16:13:54 +00:00
fix(ci): use git reset instead of pull to handle Plesk file checkout state
This commit is contained in:
parent
5204223113
commit
95c8f1e1ed
1 changed files with 3 additions and 2 deletions
5
.github/workflows/deploy-production.yml
vendored
5
.github/workflows/deploy-production.yml
vendored
|
|
@ -27,8 +27,9 @@ jobs:
|
||||||
export PATH=/opt/plesk/node/22/bin:/usr/local/bin:/usr/bin:/bin
|
export PATH=/opt/plesk/node/22/bin:/usr/local/bin:/usr/bin:/bin
|
||||||
cd /var/www/vhosts/sensualmoment.de/httpdocs
|
cd /var/www/vhosts/sensualmoment.de/httpdocs
|
||||||
|
|
||||||
echo "--- Git pull ---"
|
echo "--- Git fetch + reset ---"
|
||||||
git pull origin main
|
git fetch origin main
|
||||||
|
git reset --hard origin/main
|
||||||
|
|
||||||
echo "--- Update payload-contracts ---"
|
echo "--- Update payload-contracts ---"
|
||||||
npm update @c2s/payload-contracts
|
npm update @c2s/payload-contracts
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue