Avoid workflow erroring if there's nothing to change
All checks were successful
/ test (push) Successful in 12s
All checks were successful
/ test (push) Successful in 12s
This commit is contained in:
parent
2e25c3b074
commit
edf62414ee
1 changed files with 8 additions and 4 deletions
|
@ -16,7 +16,11 @@ jobs:
|
|||
- run: |
|
||||
cd knots-pages
|
||||
git add .
|
||||
git config user.email ""
|
||||
git config user.name "Automatic website updater"
|
||||
git commit -m "Automatic website update"
|
||||
git push
|
||||
if [[ -z "$(git status -s)" ]]; then
|
||||
echo "Nothing to push"
|
||||
else
|
||||
git config user.email ""
|
||||
git config user.name "Automatic website updater"
|
||||
git commit -m "Automatic website update"
|
||||
git push
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue