Run Newsletter Generator Daily #49
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: 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 |