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:
parent
0d93fee725
commit
d172c5d467
1 changed files with 3 additions and 7 deletions
6
.github/workflows/update-instances.yml
vendored
6
.github/workflows/update-instances.yml
vendored
|
@ -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 add services.json
|
||||||
git commit -m '[CI] Auto update instances'
|
git commit -m '[CI] Auto update instances' || exit 0
|
||||||
git push
|
git push
|
||||||
fi
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue