Skip to content

Commit 0777896

Browse files
committed
[fix] Cleanup before checking git in automated releases
Signed-off-by: Dominika <sokolov.dominika@gmail.com>
1 parent 30a1380 commit 0777896

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/runAutomatedRelease.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ check_var "KAMI_WEBHOOK" "$KAMI_WEBHOOK" || exit $?
1919

2020
# Safely update repository
2121
cd "$KAMI_DIR" || exit $?
22+
git reset --hard HEAD
2223
check_git || exit $?
2324
OLD_COMMIT=$(git log --pretty=%h -1)
2425

0 commit comments

Comments
 (0)