We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 770e85e + 742f57e commit a64a3e3Copy full SHA for a64a3e3
.github/workflows/deploy.workflow.yml
@@ -22,6 +22,7 @@ jobs:
22
username: ${{ secrets.SSH_USER }}
23
key: ${{ secrets.SSH_PRIVATE_KEY }}
24
script: |
25
+ set -e # Exit on error
26
cd ${{ secrets.WORK_DIR }}
27
28
# Set up Git to use the Personal Access Token
@@ -31,6 +32,7 @@ jobs:
31
32
33
# Pull changes
34
git checkout ${{ vars.MAIN_BRANCH }}
35
+ git reset --hard HEAD
36
git pull
37
38
# Install dependencies and build the project
0 commit comments