Generate Code #20
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 Code | |
on: | |
workflow_dispatch: | |
jobs: | |
generate-codes: | |
runs-on: ubuntu-latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Install dependencies | |
run: | | |
pnpm install | |
- name: Generate code and comment by terra | |
uses: AgoraIO-Extensions/actions/.github/actions/generate@main | |
with: | |
github-token: ${{ secrets.GH_TOKEN }} | |
generate-code: true | |
generate-comment: false | |
generate-code-command: | | |
sh terra-types.sh | |
sh terra-binding.sh | |
- name: Create PR | |
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 | |
github-token: ${{ secrets.GH_TOKEN }} |