Skip to content

Commit

Permalink
fix: add git reset command before checkout (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
glpecile authored Aug 26, 2024
1 parent c26f1ee commit 9047237
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/explorer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
ssh -o "StrictHostKeyChecking=no" ${USERNAME}@${HOST_NAME} "
cd ${APP_DIR} &&
git fetch &&
git reset --hard HEAD &&
git clean -fd &&
git checkout ${REF} &&
git pull &&
sudo systemctl restart ${SERVICE_NAME}
Expand Down

0 comments on commit 9047237

Please sign in to comment.