- organized under one directory and added Italian #6
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 per Commit | |
on: | |
push: | |
paths: | |
- README.md | |
- .github/** | |
- _config.yml | |
- _sass/color_schemes/wider.scss | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
gpt_translate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository with two latest commits | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Run GPT Translate | |
uses: 3ru/gpt-translate@master | |
with: | |
model: "gpt-3.5-turbo" | |
apikey: ${{ secrets.OPENAI_API_KEY }} | |
inputFiles: './README.md' | |
outputFiles: 'translations/DE/*.md translations/FR/*.md translations/CH/*.md translations/PL/*.md translations/IT/*.md translations/JA/*.md translations/ES/*.md' | |
languages: 'German French Mandarin Polish Italian Japanese Spanish' | |
prompt: 'Act as an expert computer scientist who is a native speaker of {targetLanguage} and has good background in materials science. Please translate the given Engligh technical description of research activities into {targetLanguage} and output it in Markdown format. If you translate headers, make sure to adjust internal Markdown hyperlinks.' |