Skip to content

Commit cf898e6

Browse files
committed
ci: translate issue from Chinese to English
Signed-off-by: Rory Z <16801068+Rory-Z@users.noreply.github.com>
1 parent 585e108 commit cf898e6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Translate Issue from Chinese to English
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
issue_number:
7+
description: 'The issue number to translate'
8+
required: true
9+
type: string
10+
issues:
11+
types: [opened]
12+
13+
jobs:
14+
translate:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write # Grant permission to edit issues
18+
steps:
19+
- uses: emqx/translate-issue-action@ee63ec619dfc5808ee2093dba93dfd7ac3beb437 # v1.0.2
20+
with:
21+
issue_number: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.issue_number || github.event.issue.number }}
22+
gemini_api_key: ${{ secrets.GEMINI_API_KEY }}

0 commit comments

Comments
 (0)