Sync Google Sheets data #1807
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: Sync Google Sheets data | |
on: | |
schedule: | |
- cron: "50 * * * *" # 50 past every hour | |
workflow_dispatch: | |
push: | |
branches: | |
- develop | |
jobs: | |
pull-sheets: | |
name: Sync Google Sheets data | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: develop | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
architecture: x64 | |
- name: Install BDDL | |
run: pip install -e . | |
- name: Install dev requirements | |
run: pip install -r requirements-dev.txt | |
- name: Authenticate on Google Cloud | |
uses: 'google-github-actions/auth@v1' | |
with: | |
credentials_json: '${{ secrets.GCP_CREDENTIALS }}' | |
- name: Refresh sheets data | |
run: python -m bddl.data_generation.pull_sheets | |
- name: Refresh derivative data | |
run: python -m bddl.data_generation.run_everything | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Sync Google Sheets data" |