File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments