GPT Translate #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
uses: drmingdrmer/gpt-translate@master | |
with: | |
apikey: ${{ secrets.OPENAI_API_KEY_JUNJUN }} | |
prompt: | | |
You are an expert in this area. | |
Please translate the given markdown into naturalistic {targetLanguage}. | |
Keep links and images. |