Skip to content

Commit

Permalink
feat: add actions for translate readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiJiangJie authored and ibuler committed Dec 4, 2024
1 parent 0980808 commit 7b14d68
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/translate-readme.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 7b14d68

Please sign in to comment.