mirror of
https://github.com/nanomq/nanomq.git
synced 2025-07-07 21:55:35 +00:00
ci: translate issue from Chinese to English when issue create
Signed-off-by: Rory Z <16801068+Rory-Z@users.noreply.github.com>
This commit is contained in:
22
.github/workflows/issue-translator.yaml
vendored
Normal file
22
.github/workflows/issue-translator.yaml
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
name: Translate Issue from Chinese to English
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
issue_number:
|
||||
description: 'The issue number to translate'
|
||||
required: true
|
||||
type: string
|
||||
issues:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
translate:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write # Grant permission to edit issues
|
||||
steps:
|
||||
- uses: emqx/translate-issue-action@f63fa743df6f60643e6bd13322e73e4bd7b1c678 # v1.0.3
|
||||
with:
|
||||
issue_number: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.issue_number || github.event.issue.number }}
|
||||
gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
|
Reference in New Issue
Block a user