Skip to content

Commit 323eaf2

Browse files
committed
ci: improve branch checkout
1 parent 550e5a8 commit 323eaf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
key: ${{ secrets.SERVER_SSH_KEY }}
2626
script: |
2727
cd ${{ secrets.PROD_SERVER_DEPLOY_DIR }}
28+
git stash push -m "automatic CI stash"
2829
git fetch --all
2930
git checkout ${{ github.ref_name }}
30-
git rebase origin/${{ github.ref_name }}
31+
git reset --hard origin/${{ github.ref_name }}

0 commit comments

Comments
 (0)