Skip to content

Commit 122050b

Browse files
committed
Add workflow for updateing api.json files
[noissue]
1 parent 24a8ea2 commit 122050b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/update-data.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "Update Data Branch"
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * 0,3" # every sunday and wednesday at midnight
7+
8+
jobs:
9+
update-data:
10+
runs-on: "ubuntu-latest"
11+
steps:
12+
- name: "Checkout docs-data branch"
13+
uses: "actions/checkout@v4"
14+
with:
15+
ref: docs-data
16+
17+
- name: "Set up Python"
18+
uses: "actions/setup-python@v5"
19+
with:
20+
python-version: "3.11"
21+
22+
- name: "List requirements"
23+
run: |
24+
cat requirements_ubuntu.txt
25+
cat requirements_python.txt
26+
27+
- name: "Install System dependencies"
28+
run: |
29+
sudo apt -y install $(tr '\n' ' ' < requirements_ubuntu.txt)
30+
31+
- name: "Install Python dependencies"
32+
run: |
33+
pip install --upgrade pip
34+
pip install -r requirements_python.txt
35+
36+
- name: "Generate, commit and push updated openapi json files to 'docs-data' branch"
37+
run: |
38+
git config user.name github-actions
39+
git config user.email [email protected]
40+
./update-data.sh

0 commit comments

Comments
 (0)