GitHub Action
Spotify saved songs archiver
v1.0.2
Latest version
A GitHub action to run spotify-tracks-archiver
name: Backup Spotify "Saved Songs" library
on:
schedule:
- cron: 0 4 * * 6
workflow_dispatch:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: keller00/[email protected]
with:
output-file: library.json
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
This does the following:
- Checks out your repository to commit the JSON file to.
- It sets up the newest availabe Python 3 (
spotify_tracks_archiver
requires Python 3.9, or newer). - Executes
spotify_tracks_archiver
.
This example sets up this job to run once a week.