-
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (29 loc) · 824 Bytes
/
main.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
37
name: Scheduled Spotify Wrapped 365 Job
on:
schedule:
- cron: '30 */0 * * *'
push:
branches:
- main
jobs:
run-script:
runs-on: ubuntu-latest
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
SECRET_CLIENT_ID: ${{ secrets.SECRET_CLIENT_ID }}
REDIRECT_URL: ${{ secrets.REDIRECT_URL }}
USERNAME: ${{ secrets.USERNAME }}
AUTH_CACHE: ${{ secrets.AUTH_CACHE }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run main.py
run: python main.py
# Figure out how to refresh the token & assign refreshed token to AUTH_CACHE in GitHub secrets