Skip to content

Fetch quote tweets cron job #298

Fetch quote tweets cron job

Fetch quote tweets cron job #298

name: Fetch quote tweets cron job
on:
schedule:
- cron: "0 0 * * *" # Run it every 24 hours
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Execute script
env:
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
NOTION_API_TOKEN: ${{ secrets.NOTION_API_TOKEN }}
NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}
TWITTER_BEARER_TOKEN: ${{ secrets.TWITTER_BEARER_TOKEN }}
run: python src/fetch_quote_tweets.py