GitHub Spotify Stats #1133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Spotify Stats | |
on: | |
schedule: | |
# Runs every hour, at 10:00 through 23:00 and 00:00 through 02:00. | |
- cron: '0 10-23,0-2 * * *' | |
#push: | |
#branches: | |
#- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: GitGinocchio/spotify-stats-action@main | |
id: spotify-stats-action | |
env: | |
CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | |
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} | |
with: | |
commit_message: 'docs(readme): Update Spotify Stats' | |
update_mode: 'README' | |
readme_list: 'README.md' | |
update_last_played_songs: true | |
last_played_songs_template_path: 'last_played_songs.md' | |
last_played_songs_to_show: 5 | |
update_user_top_artists: true | |
top_artists_template_path: 'user_top_artists.md' | |
top_artists_to_show: 5 | |
update_user_most_played_songs: true | |
most_played_template_path: 'user_most_played.md' | |
most_played_songs_to_show: 5 |