diff --git a/.github/workflows/generate-code.yml b/.github/workflows/generate-code.yml index d0c80c9..89d3a40 100644 --- a/.github/workflows/generate-code.yml +++ b/.github/workflows/generate-code.yml @@ -18,18 +18,18 @@ jobs: - name: Setup uses: ./.github/actions/setup - - name: Reconfigure git to use HTTP authentication - run: > - git config --global url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf ssh://git@github.com/ - - - name: Generate + - name: Install dependencies run: | pnpm install - cd scripts/terra - rm -rf .terra - yarn - export 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 - yarn terra + + - 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: | + yarn terra - name: Create PR uses: AgoraIO-Extensions/actions/.github/actions/pr@main @@ -40,5 +40,4 @@ jobs: terra-update pull-request-title: | [AUTO] Generate code by terra - add-paths: ts github-token: ${{ secrets.GH_TOKEN }}