Skip to content

Commit 2c5cc80

Browse files
Update monkeytype theme action workflow (#8)
* Update themeList.yml * Update themeList.yml * feat: update themes json list * Update themeList.yml * Update themes.json
1 parent db2b26e commit 2c5cc80

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/themeList.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Update monkeytype theme json list
22

33
on:
44
schedule:
5-
- cron: '0 */6 * * *'
5+
- cron: '0 */24 * * *'
66

77
jobs:
88
make-request:
@@ -17,7 +17,11 @@ jobs:
1717
node-version: '16.x'
1818

1919
- name: Download theme json file from monkeytype
20-
run: curl -o theme/themes.json https://raw.githubusercontent.com/monkeytypegame/monkeytype/master/frontend/static/themes/_list.json
20+
run: curl -o theme/themes.json https://monkeytype-readme.repl.co/monkeytype/theme
21+
22+
- name: Format JSON data
23+
run: |
24+
python3 -c 'import json; data = json.load(open("theme/themes.json")); json.dump(data, open("theme/themes.json", "w"), indent=2)'
2125
2226
- name: Print json file contents
2327
run: cat theme/themes.json

0 commit comments

Comments
 (0)