Poem of the day #407
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: Send the daily poem | |
on: | |
schedule: | |
- cron: "0 11 * * *" # daily at 11:00 UTC (usually 06:00 EST) | |
jobs: | |
run_tests: | |
name: Send a daily poem at noon UTC | |
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 -r requirements.txt | |
- name: Curate a poem, and send it to the listserv | |
run: | |
python scripts/send-poem.py --kind "daily" --username "poemsfromtom@gmail.com" --password ${{ secrets.PFT_PW }} --listserv_filename "data/poems/listserv.csv" | |
--github_repo_name "thomaswmorris.github.io" --github_token ${{ secrets.GH_TOKEN }} |