From f7cfb5b7992e038dc0d9dd45a33e18ac1d9d3ac0 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Fri, 29 Mar 2024 18:14:25 +0800 Subject: [PATCH] ci: update translator bot --- .github/workflows/gh-translator.yml | 23 +++++++++++++++++++++++ .github/workflows/issue-translator.yml | 16 ---------------- 2 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/gh-translator.yml delete mode 100644 .github/workflows/issue-translator.yml diff --git a/.github/workflows/gh-translator.yml b/.github/workflows/gh-translator.yml new file mode 100644 index 000000000..c3a0f6d92 --- /dev/null +++ b/.github/workflows/gh-translator.yml @@ -0,0 +1,23 @@ +name: 'gh-translator' + +on: + issues: + types: [opened] + pull_request: + types: [opened] + issue_comment: + types: [created, edited] + discussion: + types: [created, edited, answered] + discussion_comment: + types: [created, edited] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: usthe/issues-translate-action@v2.7 + with: + BOT_GITHUB_TOKEN: ${{ secrets.GH_TRANSLATOR_TOKEN }} + IS_MODIFY_TITLE: true + CUSTOM_BOT_NOTE: 🤖 Non-English text detected, translating... diff --git a/.github/workflows/issue-translator.yml b/.github/workflows/issue-translator.yml deleted file mode 100644 index dd2ecbcea..000000000 --- a/.github/workflows/issue-translator.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: 'issue-translator' -on: - issue_comment: - types: [created] - issues: - types: [opened] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: usthe/issues-translate-action@v2.7 - with: - BOT_GITHUB_TOKEN: ${{ secrets.GH_TRANSLATOR_TOKEN}} - IS_MODIFY_TITLE: true - CUSTOM_BOT_NOTE: Non-English text detected, translating...