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.
@@ -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