From 5b945b16c1e0414c70189bf25ffa4139bec5b4f1 Mon Sep 17 00:00:00 2001 From: Li Wei Date: Tue, 18 Jul 2023 09:17:07 +0000 Subject: [PATCH] ci: auto translate --- .github/workflows/translator.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 00000000..dfc0f850 --- /dev/null +++ b/.github/workflows/translator.yml @@ -0,0 +1,30 @@ +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@1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + IS_MODIFY_TITLE: true + APPEND_TRANSLATION: true \ No newline at end of file