Simplify CI commit in "update" workflow

The steps taken to commit the changes to services.json were overly complicated.
This simplifies the steps to just `exit 0` if there are no changes to commit.
This commit is contained in:
Ben Busby 2021-11-27 17:52:21 -07:00 committed by GitHub
parent 0d93fee725
commit d172c5d467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,10 +59,6 @@ jobs:
# ==============================================================
# Push changes
# ==============================================================
if [[ $(git diff-index --quiet HEAD) ]]; then
echo "No updates"
else
git add services.json
git commit -m '[CI] Auto update instances'
git push
fi
git add services.json
git commit -m '[CI] Auto update instances' || exit 0
git push