forked from EthanRosenthal/discovered-weekly
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.01 KB
/
run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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/actions-poetry@v2.0.0
with:
poetry-version: 1.4.2
- name: Install dependencies
run: |
poetry config virtualenvs.create false
poetry install
- 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