Skip to content

Summarize News

Summarize News #14927

Workflow file for this run

name: Summarize News
on: workflow_dispatch
env:
DOMAIN_NAME: ${{ secrets.DOMAIN_NAME }}
MAIL_DEFAULT_SENDER: ${{ secrets.MAIL_DEFAULT_SENDER }}
MAIL_PASSWORD: ${{ secrets.MAIL_PASSWORD }}
MAIL_PORT: ${{ secrets.MAIL_PORT }}
MAIL_SERVER: ${{ secrets.MAIL_SERVER }}
MAIL_USERNAME: ${{ secrets.MAIL_USERNAME }}
MAIL_USE_SSL: ${{ secrets.MAIL_USE_SSL }}
MAIL_USE_TLS: ${{ secrets.MAIL_USE_TLS }}
MONGO_DATABASE: ${{ secrets.MONGO_DATABASE }}
MONGO_URI: ${{ secrets.MONGO_URI }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
INTERFERENCE_API_KEY: ${{ secrets.INTERFERENCE_API_KEY }}
CRON_JOB_WEBHOOK: ${{ secrets.CRON_JOB_WEBHOOK }}
jobs:
cron:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-github.txt
- name: Summarize Articles
run: |
python -m flask --app gmt commands summarize-news