Mirror Airtable data #168
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: Mirror Airtable data | |
on: | |
schedule: | |
- cron: "0 8 * * *" #update every day at 8AM | |
workflow_dispatch: | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Install package manager for deps | |
run: pipx install pipenv | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
cache: "pipenv" | |
- name: Install deps | |
run: pipenv install | |
- name: Make that mirror, please | |
env: | |
AIRTABLE_BASE_ID: ${{ secrets.AIRTABLE_BASE_ID }} | |
AIRTABLE_KEY: ${{ secrets.AIRTABLE_KEY }} | |
SUPABASE_DATABASE_URL: ${{ secrets.SUPABASE_DATABASE_URL }} | |
run: pipenv run python mirror.py |