We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 172f3ee commit 3c33529Copy full SHA for 3c33529
.github/workflows/issue-translator.yaml
@@ -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