diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8dc3f41..4f8095e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,22 +28,20 @@ jobs: - name: Run Python Script run: python asylex_automation.py - - name: Commit and Push Changes UN Treaty + - name: Commit Changes to UN Treaty bodies file run: | git config --local user.email "actions@github.com" 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 - - name: Commit and Push Changes Countries + + - name: Commit Changes to Countries geojson run: | git add data/countries_small_updated_Aug2023.geojson git commit -m "Updated countries data" + + - name: Push commits to repo + run: | if [[ `git status --porcelain` ]]; then git push origin main echo "INFO: File updated"