Fix condition for push

This commit is contained in:
Maxime Gimeno 2021-07-07 15:10:09 +02:00
parent e4f1530590
commit 9e29edb42c
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ jobs:
if [ -d ${PR_NUMBER} ]; then
git rm -r ${PR_NUMBER}
fi
#git diff exits with 1 if there is a diff
if ! git diff --quiet; then
#git diff exits with 1 if there is no diff
if git diff --quiet; then
git commit -a --amend -m"base commit" && git push -f -u origin master
fi