forked from 4paradigm/OpenMLDB
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (59 loc) · 1.72 KB
/
udf-doc.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: udf-doc-gen
on:
# schedule daily at 6:00 UTC+0
schedule:
- cron: "00 6 * * *"
pull_request:
paths:
- '.github/workflows/udf-doc.yml'
- 'include/**'
- 'hybridse/**'
workflow_dispatch:
jobs:
udf-doc-gen:
runs-on: ubuntu-latest
env:
NPROC: 2
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: setup poetry
run: |
pipx install poetry
- name: install doxygen
run: |
sudo apt-get install -y doxygen
- name: install doxybook2
run: |
wget https://github.com/matusnovak/doxybook2/releases/download/v1.5.0/doxybook2-linux-amd64-v1.5.0.zip
mkdir -p doxybook2
unzip -d doxybook2 doxybook2-*.zip
pushd doxybook2/
sudo find . -type f -exec install -D {} /usr/local/{} \;
popd
- name: generate doc
run: |
make udf_doc_gen
- name: take change into source tree
if: github.event_name != 'pull_request'
run: |
make -C hybridse/tools/documentation/udf_doxygen sync
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
if: github.event_name != 'pull_request'
with:
add-paths: |
docs/en/reference/sql/udfs_8h.md
docs/zh/openmldb_sql/udfs_8h.md
labels: |
udf
branch: docs-udf-patch
delete-branch: true
commit-message: 'docs(udf): upgrade udf list'
title: 'docs(udf): update udf list by udf-doc workflow'
body: |
Built upon ${{ github.sha }}.
reviewers:
aceforeverd