Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
skyprince999 authored Dec 6, 2023
1 parent af1f1fb commit e89758e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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"
Expand Down

0 comments on commit e89758e

Please sign in to comment.