From 70a464ea6f16e6225fb1b61cda6ee492c45e21fe Mon Sep 17 00:00:00 2001 From: Zhihao Zhang <12044174+izhangzhihao@users.noreply.github.com> Date: Sun, 17 Nov 2024 21:54:54 +0800 Subject: [PATCH] Add github-translate-action Signed-off-by: Zhihao Zhang <12044174+izhangzhihao@users.noreply.github.com> --- .github/workflows/translator.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/translator.yml diff --git a/.github/workflows/translator.yml b/.github/workflows/translator.yml new file mode 100644 index 0000000..6046e68 --- /dev/null +++ b/.github/workflows/translator.yml @@ -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