diff --git a/.github/workflows/translate-readme.yml b/.github/workflows/translate-readme.yml new file mode 100644 index 0000000..efcf8e1 --- /dev/null +++ b/.github/workflows/translate-readme.yml @@ -0,0 +1,21 @@ +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 + with: + token: ${{ secrets.PAT_PROTOSSDRAGOON_FOR_ACTIONBOT }} + g4f_provider: g4f.Provider.DeepAi # You can change this provider + langs: "zh-CN,en-US"