Merge pull request #5838 from maxGimeno/Fix_doc_removal-maxGimeno

Online Doc: Fix condition for push
This commit is contained in:
Sebastien Loriot 2021-07-19 09:34:17 +02:00 committed by GitHub
commit f5937cd303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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