diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3618f9..928ccd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,10 +34,15 @@ jobs: git config --local user.name "GitHub Actions" git add data/UNTrendyBodyAndRegionalOnes.json git commit -m "Updated UN Bodies data" + if [[ `git status --porcelain` ]]; then + git push origin main + echo "INFO: File updated" + else + echo "INFO: No changes detected" + fi + git add data/countries_small_updated_Aug2023.geojson git commit -m "Updated countries data" - - if [[ `git status --porcelain` ]]; then git push origin main echo "INFO: File updated"