Skip to content

Commit 53208f8

Browse files
committed
Use git checkout --force instead of stash in deploy workflow
1 parent dd19641 commit 53208f8

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/deploy-beta.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
script: |
1919
cd ${{ secrets.BETA_PATH }}
2020
git fetch origin
21-
git stash
22-
git checkout -B beta origin/beta
23-
git stash drop || true
21+
git checkout -f -B beta origin/beta
2422
npm install
2523
pm2 restart beta

.github/workflows/deploy-main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
script: |
1919
cd ${{ secrets.MAIN_PATH }}
2020
git fetch origin
21-
git stash
22-
git checkout -B main origin/main
23-
git stash drop || true
21+
git checkout -f -B main origin/main
2422
npm install
2523
pm2 restart zerohost-dashboard

0 commit comments

Comments
 (0)