Playlist rules
Choose what your Spotify bot keeps updated. Spotify rankings use Spotify’s time windows. Play-count rules use the listening history imported into your bot.
Apply rules in GitHub
Set up the bot once before applying rules. An all-time play-count playlist uses the listening history imported into your bot.
- Choose Copy rules for GitHub above.
- In your private repository, open Actions, choose your playlist sync workflow, and click Run workflow. Use the default branch.
- Paste the rules into playlist_rules and click Run workflow. When the run succeeds, open Spotify to see the result.
Submitted rules replace the bot’s current playlist rules. The workflow uses the encryption secret already saved in GitHub.
Missing the playlist_rules field?
For a private repository made from the Neon Music starter, install these two files once on the default branch. If you customized your workflow, keep those changes when adding the new input and step.
- Save playlist_rules.py beside
cloud.pyat the repository root. - Use the updated workflow as
.github/workflows/rotation.yml.
Apply a rules download locally
- Set up your bot first. For an all-time play-count playlist, import your Spotify Extended Streaming History into that bot.
- Download playlist_rules.py into your bot folder next to
cloud.py. Put the downloadedneon-music-playlist-rules.jsonthere too. - Download the latest
state/config.encfrom your private GitHub repository into the bot’s localstatefolder. From the bot folder, runpython playlist_rules.py neon-music-playlist-rules.jsonusing your existing localrotation-key.txt. - Upload only the resulting
state/config.encback to the same path in your private repository. Open GitHub Actions to check the next playlist sync.
The website exports rules only. The local script updates just the encrypted configuration using your existing key.