@@ -2,49 +2,30 @@ name: Generate codes
2
2
3
3
on :
4
4
workflow_dispatch :
5
- inputs :
6
- terra-ref :
7
- description : The terra repo ref
8
- required : true
9
- default : " main"
10
5
11
6
jobs :
12
7
generate-codes :
13
8
runs-on : ubuntu-latest
14
9
steps :
15
10
- name : Checkout
16
11
uses : actions/checkout@v4
12
+ with :
13
+ fetch-depth : 0
14
+ token : ${{ secrets.GITHUB_TOKEN }}
17
15
18
16
- name : Setup
19
17
uses : ./.github/actions/setup
20
18
21
- - name : Generate codes
22
- id : terra
23
- uses : AgoraIO-Extensions/actions/.github/actions/terra@main
24
- env :
25
- LLVM_DOWNLOAD_URL : |
26
- https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.6/clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04.tar.xz
19
+ - name : Generate code and comment by terra
20
+ uses : AgoraIO-Extensions/actions/.github/actions/generate@main
27
21
with :
28
22
github-token : ${{ secrets.GH_TOKEN }}
29
- terra-ref : ${{ inputs.terra-ref }}
30
- config : ci/config/terra_config.yaml
31
- output-dir : ts/Private
32
- export-file-path : ts/AgoraSdk.ts
33
-
34
- - name : Format codes
35
- run : |
36
- rm -rf terra
37
- yarn lint --fix
38
-
39
- - name : Generate ts interface
40
- run : |
41
- yarn build:ts-interface
42
-
43
- - name : Generate comments
44
- uses : ./.github/actions/doc
45
- with :
46
- github-token : ${{ secrets.GH_TOKEN }}
47
- target-path : ${{ github.workspace }}
23
+ generate-code : true
24
+ generate-comment : true
25
+ generate-code-command : |
26
+ sh generate-code.sh
27
+ generate-comment-command : |
28
+ sh generate-comment.sh
48
29
49
30
- name : Create pull request
50
31
uses : AgoraIO-Extensions/actions/.github/actions/pr@main
55
36
target-branch-name-surffix : terra-update
56
37
pull-request-title : |
57
38
[AUTO] Generate codes by terra
58
- pull-request-body : |
59
- Terra configuration:
60
-
61
- ${{ steps.terra.outputs.configuration }}
62
39
add-paths : ts
0 commit comments