-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 953 Bytes
/
mylist-json.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
name: My list - Genererate JSON file
on:
push:
paths:
- 'mylist/mylist-export.txt'
workflow_dispatch:
jobs:
generate-json:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Setup Python Environment
uses: actions/[email protected]
with:
python-version: "3.10"
- name: Install Requirements
run: |
pip install -r requirements.txt
pip install -r mylist/requirements.txt
- name: Generate JSON from TXT
run: |
cd mylist
python mylist-generate.py
- name: Commit changes
uses: stefanzweifel/[email protected]
with:
commit_message: Update My List JSON file
push_options: '--force'
skip_dirty_check: true
skip_fetch: true
skip_checkout: true
disable_globbing: true