diff --git a/.github/workflows/gpt-translate.yml b/.github/workflows/gpt-translate.yml new file mode 100644 index 000000000..45f7838e9 --- /dev/null +++ b/.github/workflows/gpt-translate.yml @@ -0,0 +1,20 @@ +name: GPT Translate + +on: + issue_comment: + types: [created] + +jobs: + gpt_translate: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Run GPT Translate + if: | + contains(github.event.comment.body, '/gpt-translate') || + contains(github.event.comment.body, '/gt') + uses: 3ru/gpt-translate@master + with: + apikey: ${{ secrets.OPENAI_API_KEY }}