Skip to content

Fetch tweets cron job #2284

Fetch tweets cron job

Fetch tweets cron job #2284

Workflow file for this run

name: Fetch tweets cron job
on:
schedule:
- cron: "0 */2 * * *" # Run it every 2 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_tweets.py