Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Nov 28, 2023
1 parent f2070ac commit 97ca0f7
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/generate-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,5 +40,4 @@ jobs:
terra-update
pull-request-title: |
[AUTO] Generate code by terra
add-paths: ts
github-token: ${{ secrets.GH_TOKEN }}

0 comments on commit 97ca0f7

Please sign in to comment.