Skip to content

Archive Release Radar Playlist #47

Archive Release Radar Playlist

Archive Release Radar Playlist #47

name: Archive Release Radar Playlist
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
# Run Fridays at 7:57
- cron: "57 7 * * 5"
jobs:
archive_release_radar:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
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"
"Release Radar" "RR - %b %e"