From 529e85d2b7d7318d08a69e9704f832176d202d64 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 1 Jun 2021 14:53:16 +0200 Subject: [PATCH] Setting up CD --- .github/workflows/theme_validation_and_deploy.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/theme_validation_and_deploy.yml b/.github/workflows/theme_validation_and_deploy.yml index eec8939fa7..dd88b849c4 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