Skip to content

Generate codes

Generate codes #86

Workflow file for this run

name: Generate codes
on:
workflow_dispatch:
jobs:
generate-codes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup
uses: ./.github/actions/setup
- name: Generate code and comment by terra
uses: AgoraIO-Extensions/actions/.github/actions/generate@generate
with:
github-token: ${{ secrets.GH_TOKEN }}
target-repo: ${{ github.workspace }}
target-branch: ${{ github.ref_name }}
target-branch-name-surffix: terra-update
generate-code: true
generate-comment: true
generate-code: |

Check failure on line 28 in .github/workflows/terra.yml

View workflow run for this annotation

GitHub Actions / Generate codes

Invalid workflow file

The workflow is not valid. .github/workflows/terra.yml (Line: 28, Col: 11): 'generate-code' is already defined .github/workflows/terra.yml (Line: 30, Col: 11): 'generate-comment' is already defined
sh generate-code.sh
generate-comment: |
sh generate-comment.sh
pull-request-title: |
[AUTO] Generate codes by terra