Generate codes #53
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate codes | |
on: | |
workflow_dispatch: | |
inputs: | |
terra-ref: | |
description: The terra repo ref | |
required: true | |
default: "main" | |
jobs: | |
generate-codes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Generate codes | |
uses: AgoraIO-Extensions/actions/.github/actions/terra@main | |
env: | |
LLVM_DOWNLOAD_URL: | | |
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 | |
with: | |
terra-ref: ${{ inputs.terra-ref }} | |
target-path: ${{ github.workspace }} | |
config: ci/config/terra_config.yaml | |
output-dir: src | |
export-file-path: src/index.ts | |
github-token: ${{ secrets.GH_TOKEN }} | |
- name: Format codes | |
run: | | |
rm -rf terra | |
yarn lint --fix | |
- name: Generate ts interface | |
run: | | |
yarn ts_interface_builder | |
- name: Generate comments | |
uses: ./.github/actions/doc | |
with: | |
target-path: ${{ github.workspace }} | |
github-token: ${{ secrets.GH_TOKEN }} | |
- name: Create pull request | |
uses: AgoraIO-Extensions/actions/.github/actions/pr@main | |
with: | |
target-repo: ${{ github.workspace }} | |
target-branch: ${{ github.ref_name }} | |
target-branch-name-surffix: | | |
terra-update | |
pull-request-title: | | |
[AUTO] Generate code by terra | |
add-paths: src | |
github-token: ${{ secrets.GH_TOKEN }} |