-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (39 loc) · 984 Bytes
/
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
37
38
39
40
41
42
43
44
45
46
47
48
name: Check for Spotify changes
on:
workflow_dispatch:
schedule:
# UTC.
- cron: '42 20 * * *'
jobs:
check-spotify:
name: Check for Spotify changes
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./dev
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: '17'
- name: Install deps
run: npm install
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
- name: Run
run: >
xvfb-run --auto-servernum node ./check.js ;
( pkill -9 xvfb-run || true )
env:
SPOT_SP_T: ${{ secrets.SPT }}
SPOT_SP_DC: ${{ secrets.SPDC }}
- uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: dump
path: |
/tmp/*.png
/tmp/svg.json
if-no-files-found: error