forked from RegsonDR/spotify-save-playlists-cron
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 749 Bytes
/
save.yaml
File metadata and controls
30 lines (25 loc) · 749 Bytes
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
name: Save songs
on:
schedule:
- cron: '30 6 * * 1'
workflow_dispatch:
jobs:
execute-cron:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Python Environment
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Requirements
run: pip install -r requirements.txt
- name: Execute Python script
run: python main.py
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
DISCOVER_WEEKLY_ID: ${{ secrets.DISCOVER_WEEKLY_ID }}
SAVE_TO_ID: ${{ secrets.SAVE_TO_ID }}