fetch-data-from-airtable #539
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: fetch-data-from-airtable | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "00 05 * * *" #runs at 05:00am UTC everyday | |
jobs: | |
getdata: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.5.3 | |
- name: Setup Python | |
uses: actions/setup-python@v4.7.0 | |
with: | |
python-version: 3.9 | |
- name: Install Python dependencies | |
uses: py-actions/py-dependency-install@v4 | |
with: | |
path: "requirements.txt" | |
update-pip: "false" | |
update-setuptools: "false" | |
update-wheel: "false" | |
- name: execute py script | |
run: python fetch_airtable_data.py | |
env: | |
AIRTABLE_ACCESS_TOKEN: ${{ secrets.AIRTABLE_ACCESS_TOKEN }} | |
AIRTABLE_BASE_ID: ${{ secrets.AIRTABLE_BASE_ID }} | |
- name: Git Auto Commit | |
uses: stefanzweifel/git-auto-commit-action@v4.16.0 | |
with: | |
commit_message: Data fetch from airtable | |
branch: main | |