-
Notifications
You must be signed in to change notification settings - Fork 261
52 lines (48 loc) · 1.46 KB
/
LINAR-generate-module-html.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
47
48
49
50
51
52
name: "LINAR: update module html"
# forced rebuild date: Nov 22
on:
push:
paths:
- ".DINAR/build-date-private.txt"
- ".github/workflows/LINAR-generate-module-html.yml"
- "*/__manifest__.py"
- "*/doc/src/info.yaml"
- "*/doc/src/index.html"
jobs:
module_html:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
path: REPO
# token is required to bypass pushing without checks/reviews
token: ${{ secrets.DINAR_TOKEN }}
- name: Checkout LINAR
uses: actions/checkout@v2
with:
path: LINAR
repository: itpp-labs/LINAR
ref: master
token: ${{ secrets.DINAR_TOKEN }}
- uses: actions/setup-python@v1
with:
python-version: "3.9.x"
- name: Install python tools
run: |
pip install plumbum pyyaml
- name: Generate html
run: |
cd REPO
for d in */ ; do
python ../LINAR/workflow-files/generate_module_html.py $d
done
- name: Commit updates
uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: REPO
commit_user_name: Mitchell Admin
commit_user_email: [email protected]
commit_message: |
:angel: Update module html
Sent from Github Actions (see .github/workflows/LINAR-generate-module-html.yml )