From e89758ebb51d8bed0252a79f25f12a18a3021766 Mon Sep 17 00:00:00 2001 From: skyprince999 Date: Wed, 6 Dec 2023 13:56:04 +0530 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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"