-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.03 KB
/
spotify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Save Spotify playlist
on:
workflow_dispatch:
inputs:
playlist-name:
description: Your Spotify playlist name that you want to export.
type: string
permissions:
contents: write
jobs:
spotify-to-yaml:
runs-on: ubuntu-latest
name: Save Spotify playlist and thumbnail
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Save the playlist
uses: ./
with:
spotify-username: "katydecorah"
env:
SpotifyClientID: ${{ secrets.SpotifyClientID }}
SpotifyClientSecret: ${{ secrets.SpotifyClientSecret}}
SpotifyUser: ${{ secrets.SpotifyUser }}
- name: Save the thumbnail
run: curl "${{ env.PlaylistImage }}" -o "img/playlists/${{ env.PlaylistImageOutput }}"
- name: Commit files
run: |
git pull
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A && git commit -m "🎵 ${{ env.playlist }}"
git push