From ddc5a4330352f915d0a428baa57e172c1368ec99 Mon Sep 17 00:00:00 2001 From: yym68686 Date: Mon, 25 Sep 2023 23:27:08 +0800 Subject: [PATCH] Add README automatic translation github action --- .github/{workflows => }/fly_deploy.yml | 0 .github/workflows/translate.yml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+) rename .github/{workflows => }/fly_deploy.yml (100%) create mode 100644 .github/workflows/translate.yml diff --git a/.github/workflows/fly_deploy.yml b/.github/fly_deploy.yml similarity index 100% rename from .github/workflows/fly_deploy.yml rename to .github/fly_deploy.yml diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml new file mode 100644 index 00000000..d67cf3d3 --- /dev/null +++ b/.github/workflows/translate.yml @@ -0,0 +1,22 @@ +# .github/workflows/translate.yml +name: Translate Readme + +on: + push: + branches: ['**'] + +jobs: + translate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 3 + + - name: Auto Translate + uses: Lin-jun-xiang/action-translate-readme@v2 # Based on the tag + with: + token: ${{ secrets.Action_Bot }} # Based on step2 name + g4f_provider: g4f.Provider.DeepAi # You can change this provider + langs: "en,zh-TW,French,Arabic" # You can define any langs \ No newline at end of file