mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 05:36:19 +08:00
b9516ba4d0
Signed-off-by: Rory Z <16801068+Rory-Z@users.noreply.github.com>
23 lines
651 B
YAML
23 lines
651 B
YAML
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@ee63ec619dfc5808ee2093dba93dfd7ac3beb437 # v1.0.2
|
|
with:
|
|
issue_number: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.issue_number || github.event.issue.number }}
|
|
gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
|