Skip to content

Spotify Discover Weekly Backup #4

Spotify Discover Weekly Backup

Spotify Discover Weekly Backup #4

Workflow file for this run

name: Spotify Discover Weekly Backup
on:
schedule:
- cron: "0 9 * * 1" # Runs every Monday at 9 AM UTC
workflow_dispatch: # Allows manual triggering of the workflow if needed
jobs:
backup:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- name: Run Spotify Backup Script
env:
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
SPOTIFY_REDIRECT_URI: ${{ secrets.SPOTIFY_REDIRECT_URI }}
run: |
. venv/bin/activate
python weekly_backup.py