diff --git a/.github/workflows/update-geojson.yml b/.github/workflows/update-geojson.yml index 445d35a..b40abce 100644 --- a/.github/workflows/update-geojson.yml +++ b/.github/workflows/update-geojson.yml @@ -23,12 +23,10 @@ jobs: # Commit the updated file to the repository - name: Commit and push changes run: | - git pull git config --global user.name "GitHub Actions" git config --global user.email "actions@github.com" - git add data/aba_alert.json - git add data/life_needs_alert.json - git add data/year_needs_alert.json + git pull --rebase origin main || echo "No changes to rebase" + git add data/aba_alert.json data/life_needs_alert.json data/year_needs_alert.json git commit -m "Update GeoJSON file" || echo "No changes to commit" git push