Skip to content

Generate codes and create pull request #4

Generate codes and create pull request

Generate codes and create pull request #4

Workflow file for this run

name: Generate codes
on:
workflow_dispatch:
inputs:
rtc_version:
description: 'verison (rtc_4.3.2, rtm_2.2.4 like)'
required: true
type: string
jobs:
generate-codes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.203'
- name: Replace rtc version
run: sh terra/replace_rtc_version.sh ${{ inputs.rtc_version }}
- name: Generate code and comment by terra
uses: AgoraIO-Extensions/actions/.github/actions/generate@main
with:
working-directory: "terra"
github-token: ${{ secrets.GH_TOKEN }}
generate-code: true
generate-comment: false
generate-code-command: |
sh prepare.sh
sh rtc.sh
- name: Create pull request
uses: AgoraIO-Extensions/actions/.github/actions/pr@main
with:
github-token: ${{ secrets.GH_TOKEN }}
target-repo: ${{ github.workspace }}
target-branch: ${{ github.ref_name }}
target-branch-name-surffix: terra-update/${{ inputs.rtc_version }}
pull-request-title: |
[AUTO] Generate codes by terra(${{ inputs.rtc_version }})
add-paths: .