Poem of the day #689
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: 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 |