feat: add actions for translate readme

pull/14581/head
Bai 2024-12-04 17:22:27 +08:00 committed by 老广
parent 0980808bb7
commit 7b14d680b2
1 changed files with 18 additions and 0 deletions

18
.github/workflows/translate-readme.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Translate README.md
on:
workflow_dispatch:
inputs:
languages:
description: "Target languages"
required: false
default: "zh-hans,zh-hant,ja,pt-br"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Auto Translate
uses: BaiJiangJie/translate-readme@main
with:
gpt_token: ${{ secrets.GPT_API_TOKEN }}
gpt_mode: 'gpt-4o-mini'
target_languages: ${{ github.event.inputs.languages }}