-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (38 loc) · 1.13 KB
/
update_data.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
name: Update public examples data json
on:
schedule:
- cron: '0 * * * *'
# For testing.
workflow_dispatch:
push:
branches:
- main
paths:
- "README.md"
jobs:
update-public-examples-data-json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r scripts/requirements.txt
- name: Process the existing README and update the orchest_examples_data.json file
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
python scripts/readme_management.py process_file
--file README.md
--output orchest_examples_data.json
--avoid-unnecessary-write
- run: |
git config user.name github-actions
git config user.email [email protected]
git add orchest_examples_data.json
git commit -m "Updating orchest_examples_data.json" || :
git push