Skip to content

discovered-weekly

discovered-weekly #153

Workflow file for this run

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@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.4.2
- 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: |
python discovered_weekly.py