Selaa lähdekoodia

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.
Ben Busby 3 vuotta sitten
vanhempi
commit
d172c5d467
1 muutettua tiedostoa jossa 3 lisäystä ja 7 poistoa
  1. 3 7
      .github/workflows/update-instances.yml

+ 3 - 7
.github/workflows/update-instances.yml

@@ -59,10 +59,6 @@ jobs:
         # ==============================================================
         # ==============================================================
         # Push changes
         # 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