Skip to content

Commit c9082e6

Browse files
committed
Update cd_dev.yaml
1 parent 649ec96 commit c9082e6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/cd_dev.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
cd /srv/node/tiny-node/
7777
pm2 stop tinyNode
7878
git stash
79-
git pull
80-
git checkout ${{ github.head_ref }}
81-
git pull
79+
git fetch --prune origin
80+
git checkout -B ${{ github.head_ref }} origin/${{ github.head_ref }}
81+
git reset --hard origin/${{ github.head_ref }}
8282
npm install
8383
pm2 start -i max bin/tinyNode.js

0 commit comments

Comments
 (0)