discovered-weekly #123
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: discovered-weekly | |
on: | |
workflow_dispatch: | |
schedule: | |
# Run every Tuesday at 0 UTC | |
- cron: '0 0 * * 2' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v2.0.0 | |
with: | |
poetry-version: 1.4.2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'poetry' | |
- name: Install dependencies | |
run: | | |
poetry config virtualenvs.create false | |
poetry install --only main | |
- name: Run discovered weekly | |
env: | |
CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | |
REDIRECT_URI: ${{ secrets.REDIRECT_URI }} | |
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} | |
USERNAME: ${{ secrets.USERNAME }} | |
DISCOVER_WEEKLY_PLAYLIST_ID: ${{ secrets.DISCOVER_WEEKLY_PLAYLIST_ID }} | |
ALL_DISCOVERED_PLAYLIST_ID: ${{ secrets.ALL_DISCOVERED_PLAYLIST_ID }} | |
run: | | |
poetry run python discovered_weekly.py |