Skip to content

Poem of the day

Poem of the day #759

Workflow file for this run

name: Poem of the day
on:
schedule:
- cron: "55 10 * * *" # daily at 10:50 UTC, so that it sends at 11 UTC (usually 06:00 AM EST)
workflow_dispatch:
jobs:
run_tests:
name: Send the poem of the day
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Install dependencies
run: |
pip install -v .
- name: Curate a poem, and send it to the listserv
run:
python scripts/send_poem.py --mode "daily" --username "poemsfromtom@gmail.com" --password ${{ secrets.PFT_PW }} --listserv_filename "poems/listserv.csv"
--github_repo_name "thomaswmorris.github.io" --github_token ${{ secrets.GH_TOKEN }} --write_to_repo