From 7f8bb81958820accf4f0a6660dcde89e535a67ca Mon Sep 17 00:00:00 2001 From: liuhq <45447608+15669072513@users.noreply.github.com> Date: Wed, 8 May 2024 17:07:52 +0800 Subject: [PATCH] Create translate.yml --- .github/workflows/translate.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/translate.yml diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml new file mode 100644 index 0000000000..ced8f0cd9f --- /dev/null +++ b/.github/workflows/translate.yml @@ -0,0 +1,29 @@ +name: translator +on: + issues: + types: [opened, edited] + issue_comment: + types: [created, edited] + discussion: + types: [created, edited] + discussion_comment: + types: [created, edited] + pull_request_target: + types: [opened, edited] + pull_request_review_comment: + types: [created, edited] + +jobs: + translate: + permissions: + issues: write + discussions: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: lizheming/github-translate-action@main + env: + GITHUB_TOKEN: ${{ secrets.TOKEN }} + with: + IS_MODIFY_TITLE: false + APPEND_TRANSLATION: true