diff options
| author | Ben Busby <noreply+git@benbusby.com> | 2021-11-27 17:52:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-27 17:52:21 -0700 |
| commit | d172c5d467899ca0b5eb88fbeee85c1cb6fb56ee (patch) | |
| tree | f23af8f580ccf1924d33360076ea8818ffe2855b /.github | |
| parent | 0d93fee725630310aef68cac3e9ec3ae38b6215b (diff) | |
| download | farside-d172c5d467899ca0b5eb88fbeee85c1cb6fb56ee.tar.gz | |
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.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/update-instances.yml | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index 2227886..07d3a9c 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -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 |
