Merge pull request #39 from owid/update-global-food-explorer #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Global Food Explorer | |
on: | |
push: | |
branches: | |
- master | |
- staging | |
paths: | |
- "scripts/global-food-explorer/**" | |
pull_request: | |
paths: | |
- "scripts/global-food-explorer/**" | |
# Auto-run the script generating the global food explorer spreadsheet, and push it as a commit to the respective branch | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v2 | |
- name: Install dependencies | |
run: cd scripts/global-food-explorer && poetry install | |
- name: Run global food explorer script | |
run: cd scripts/global-food-explorer && poetry run python global-food-explorer.py | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "🤖 update global-food-explorer" |