Skip to content

Update airtable from mysql #3185

Update airtable from mysql

Update airtable from mysql #3185

name: Update airtable from mysql
on:
workflow_dispatch: # This enables manual triggering from the GitHub UI
push:
branches:
- main
schedule:
- cron: "*/30 * * * *"
jobs:
update-airtable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11.1'
cache: 'pip'
- name: Install
run: |
pip3 install -r requirements.txt
pip3 install playwright
playwright install firefox
python3 main.py
env:
MYSQL_HOST: ${{ secrets.MYSQL_HOST }}
MYSQL_USER: ${{ secrets.MYSQL_USER }}
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
AIRTABLE_APIKEY: ${{ secrets.AIRTABLE_APIKEY }}
SSH_HOST: ${{secrets.SSH_HOST}}
SSH_USERNAME: ${{secrets.SSH_USERNAME}}
SSH_PASSWORD: ${{secrets.SSH_PASSWORD}}