Give Strava Kudos #86
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: Give Strava Kudos | |
on: | |
schedule: | |
- cron: "12 2,14,20 * * *" | |
workflow_dispatch: | |
env: | |
STRAVA_EMAIL: ${{ secrets.STRAVA_EMAIL }} | |
STRAVA_PASSWORD: ${{ secrets.STRAVA_PASSWORD }} | |
TELEGRAM_LHF_CHAT_ID: ${{ secrets.TELEGRAM_LHF_CHAT_ID }} | |
TELEGRAM_LHF_TOKEN: ${{ secrets.TELEGRAM_LHF_TOKEN }} | |
jobs: | |
run-kudos-cron: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9.10' | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- run: playwright install | |
- run: python give_kudos.py | |