diff --git a/.github/workflows/theme_validation_and_deploy.yml b/.github/workflows/theme_validation_and_deploy.yml index eec8939fa..dd88b849c 100644 --- a/.github/workflows/theme_validation_and_deploy.yml +++ b/.github/workflows/theme_validation_and_deploy.yml @@ -48,5 +48,10 @@ jobs: cd mapcomplete.github.io/ echo "mapcomplete.osm.be" > CNAME git add * - git commit -am "Deploying a new version" - git push + if git status | grep -q "Changes to be committed" + then + git commit -am "Deploying a new version" + git push + else + echo "No changes to commit" + fi