mirror of
https://github.com/benbusby/farside.git
synced 2025-03-14 19:26:30 -04:00
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
10
.github/workflows/update-instances.yml
vendored
10
.github/workflows/update-instances.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user