[CI] Fix committing

This commit is contained in:
Eugene Yaremenko 2021-08-26 01:37:03 +03:00 committed by GitHub
parent 8b3b647f1c
commit a86694157e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -32,14 +32,14 @@ fi
git add --all
if [[ -z $(git status -s) ]]; then
echo "Nothing to commit."
rm "/tmp/${PUBLISH}.patch"
exit 0
else
echo_headline "Creating commit"
git commit -m "[bot] \"${PUBLISH}\" $(date -u)"
if [ $? -ne 0 ]; then
echo "Failed to create commit."
exit 2
fi
else
echo "Nothing to commit."
rm "/tmp/${PUBLISH}.patch"
exit 0
fi