Skip to content

Daily pipeline

Daily pipeline #35

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Daily pipeline
on:
workflow_dispatch: {}
schedule:
# * is a special character in YAML so you have to quote this string
# Feel free to change this cron schedule
# Currently its scheduled for 1:25 pm UTC, Sun-Thurs
- cron: '25 13 * * *'
jobs:
generate_digest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate Digest
run: |
python -m src.cli generate-digest --commit
timestamp=$(date +"%Y%m%d_%H%M%S")
mkdir -p digests
cp digest.html "digests/digest_${timestamp}.html"
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: digest
path: digests/