Skip to content

Commit

Permalink
Add github-translate-action
Browse files Browse the repository at this point in the history
Signed-off-by: Zhihao Zhang <12044174+izhangzhihao@users.noreply.github.com>
  • Loading branch information
izhangzhihao authored Nov 17, 2024
1 parent 0a9e2cb commit 70a464e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/translator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'translator'
on:
issues:
types: [opened]
issue_comment:
types: [created]
discussion:
types: [created]
discussion_comment:
types: [created]
pull_request_target:
types: [opened]
pull_request_review_comment:
types: [created]

jobs:
translate:
permissions:
issues: write
discussions: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: izhangzhihao/github-translate-action@main
env:
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
with:
IS_MODIFY_TITLE: true
APPEND_TRANSLATION: true

0 comments on commit 70a464e

Please sign in to comment.