Skip to content

Commit a64a3e3

Browse files
committed
2 parents 770e85e + 742f57e commit a64a3e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/deploy.workflow.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
username: ${{ secrets.SSH_USER }}
2323
key: ${{ secrets.SSH_PRIVATE_KEY }}
2424
script: |
25+
set -e # Exit on error
2526
cd ${{ secrets.WORK_DIR }}
2627
2728
# Set up Git to use the Personal Access Token
@@ -31,6 +32,7 @@ jobs:
3132
3233
# Pull changes
3334
git checkout ${{ vars.MAIN_BRANCH }}
35+
git reset --hard HEAD
3436
git pull
3537
3638
# Install dependencies and build the project

0 commit comments

Comments
 (0)