[CI] Fix committing
This commit is contained in:
parent
8b3b647f1c
commit
a86694157e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue