Skip to content

Run Newsletter Generator Daily #49

Run Newsletter Generator Daily

Run Newsletter Generator Daily #49

Workflow file for this run

name: Run Newsletter Generator Daily
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
run-newsletter:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Newsletter Script
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
DEEPGRAM_API_KEY: ${{ secrets.DEEPGRAM_API_KEY }}
CREDENTIALS: ${{ secrets.CREDENTIALS }}
GMAIL_TOKEN: ${{ secrets.GMAIL_TOKEN }}
run: |
python action.py