-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (35 loc) · 1.07 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
name: "Update Data Branch"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0,3" # every sunday and wednesday at midnight
jobs:
update-data:
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- name: "Checkout docs-data branch"
uses: "actions/checkout@v4"
with:
ref: docs-data
- name: "Set up Python"
uses: "actions/setup-python@v5"
with:
python-version: "3.11"
- name: "List requirements"
run: |
cat requirements_ubuntu.txt
cat requirements_python.txt
- name: "Install System dependencies"
run: |
sudo apt -y install $(tr '\n' ' ' < requirements_ubuntu.txt)
- name: "Install Python dependencies"
run: |
pip install --upgrade pip
pip install -r requirements_python.txt
- name: "Generate openapi json files and commit/push to docs-data branch"
run: |
git config user.name github-actions
git config user.email [email protected]
./update-data.sh