-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 1.09 KB
/
archive-discover-weekly.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
name: Archive Discover Weekly Playlist
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
# Run Mondays at 7:57
- cron: "57 7 * * 1"
jobs:
archive_discover_weekly:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python deps
run: pip install -r requirements.txt
- name: Run playlist archiver script
shell: bash
env:
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
SPOTIFY_ACCESS_TOKEN: ${{ secrets.SPOTIFY_ACCESS_TOKEN }}
SPOTIFY_REFRESH_TOKEN: ${{ secrets.SPOTIFY_REFRESH_TOKEN }}
run: >
python playlist-archiver-for-spotify.py
"$SPOTIFY_CLIENT_ID" "$SPOTIFY_CLIENT_SECRET"
"$SPOTIFY_ACCESS_TOKEN" "$SPOTIFY_REFRESH_TOKEN"
"Discover Weekly" "DW - %b %e"