Skip to content

Commit dd19641

Browse files
committed
Stash local changes before checkout in deploy workflow
1 parent 513865f commit dd19641

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/deploy-beta.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
script: |
1919
cd ${{ secrets.BETA_PATH }}
2020
git fetch origin
21+
git stash
2122
git checkout -B beta origin/beta
23+
git stash drop || true
2224
npm install
2325
pm2 restart beta

.github/workflows/deploy-main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
script: |
1919
cd ${{ secrets.MAIN_PATH }}
2020
git fetch origin
21+
git stash
2122
git checkout -B main origin/main
23+
git stash drop || true
2224
npm install
2325
pm2 restart zerohost-dashboard

0 commit comments

Comments
 (0)