-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 2.54 KB
/
update-playlists.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Update playlists
name: "Playlists"
on:
push:
branches:
- main
schedule:
# run each day at 06:00 AEST, which is 20:00 UTC the day before
- cron: '0 20 * * *'
jobs:
update:
name: Update Playlists
runs-on: ubuntu-latest
environment: 'Update playlists'
strategy:
fail-fast: true
matrix:
python-version:
- "3.13"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: '${{ matrix.python-version }}'
cache: 'pip'
- name: Install dependencies and app
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade .
- name: Update playlists
env:
LASTFM_AUTH_API_KEY: ${{ secrets.LASTFM_AUTH_API_KEY }}
MUSIC_PLAYLISTS_BASE_PATH: ''
MUSIC_PLAYLISTS_TIME_ZONE: ${{ secrets.MUSIC_PLAYLISTS_TIME_ZONE }}
SPOTIFY_AUTH_CLIENT_ID: ${{ secrets.SPOTIFY_AUTH_CLIENT_ID }}
SPOTIFY_AUTH_CLIENT_SECRET: ${{ secrets.SPOTIFY_AUTH_CLIENT_SECRET }}
SPOTIFY_AUTH_REDIRECT_URI: ${{ secrets.SPOTIFY_AUTH_REDIRECT_URI }}
SPOTIFY_AUTH_REFRESH_TOKEN: ${{ secrets.SPOTIFY_AUTH_REFRESH_TOKEN }}
SPOTIFY_PLAYLIST_ID_DOUBLEJ_MOST_PLAYED: ${{ secrets.SPOTIFY_PLAYLIST_ID_DOUBLEJ_MOST_PLAYED }}
SPOTIFY_PLAYLIST_ID_LASTFM_MOST_POPULAR_AUS: ${{ secrets.SPOTIFY_PLAYLIST_ID_LASTFM_MOST_POPULAR_AUS }}
SPOTIFY_PLAYLIST_ID_RADIO_4ZZZ_MOST_PLAYED: ${{ secrets.SPOTIFY_PLAYLIST_ID_RADIO_4ZZZ_MOST_PLAYED }}
SPOTIFY_PLAYLIST_ID_TRIPLEJ_MOST_PLAYED: ${{ secrets.SPOTIFY_PLAYLIST_ID_TRIPLEJ_MOST_PLAYED }}
SPOTIFY_PLAYLIST_ID_TRIPLEJ_UNEARTHED: ${{ secrets.SPOTIFY_PLAYLIST_ID_TRIPLEJ_UNEARTHED }}
YOUTUBE_MUSIC_AUTH_CONFIG: ${{ secrets.YOUTUBE_MUSIC_AUTH_CONFIG }}
YOUTUBE_MUSIC_PLAYLIST_ID_DOUBLEJ_MOST_PLAYED: ${{ secrets.YOUTUBE_MUSIC_PLAYLIST_ID_DOUBLEJ_MOST_PLAYED }}
YOUTUBE_MUSIC_PLAYLIST_ID_LASTFM_MOST_POPULAR_AUS: ${{ secrets.YOUTUBE_MUSIC_PLAYLIST_ID_LASTFM_MOST_POPULAR_AUS }}
YOUTUBE_MUSIC_PLAYLIST_ID_RADIO_4ZZZ_MOST_PLAYED: ${{ secrets.YOUTUBE_MUSIC_PLAYLIST_ID_RADIO_4ZZZ_MOST_PLAYED }}
YOUTUBE_MUSIC_PLAYLIST_ID_TRIPLEJ_MOST_PLAYED: ${{ secrets.YOUTUBE_MUSIC_PLAYLIST_ID_TRIPLEJ_MOST_PLAYED }}
YOUTUBE_MUSIC_PLAYLIST_ID_TRIPLEJ_UNEARTHED: ${{ secrets.YOUTUBE_MUSIC_PLAYLIST_ID_TRIPLEJ_UNEARTHED }}
run: music-playlists services update