Daily link-history email #1029
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: Daily link-history email | |
on: | |
workflow_dispatch: # Enable manual invocation for testing | |
schedule: | |
- cron: "0 20 * * *" # 6am daily (AEST) | |
jobs: | |
Send-Email: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- run: pip freeze | |
- run: python daily_pinboard.py | |
env: | |
API_ENDPOINT: ${{ secrets.API_ENDPOINT }} | |
PINBOARD_TOKEN: ${{ secrets.PINBOARD_TOKEN }} | |
EMAIL: ${{ secrets.EMAIL }} | |
SMTP_SERVER: ${{ secrets.SMTP_SERVER }} | |
SMTP_USERNAME: ${{ secrets.SMTP_USERNAME }} | |
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }} |