fetch-data-from-airtable #512
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/[email protected] | |
- name: Setup Python | |
uses: actions/[email protected] | |
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/[email protected] | |
with: | |
commit_message: Data fetch from airtable | |
branch: main | |