File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Your task is translate `README.md` into several languages. The translation shoul
22Target languages: Chinese (zh-cn), Chinese (zh-tw), Japanese (ja-JP)
33Use the following format for each translation: `README.{language_code}-{country_code}.md`
44Rules:
5- - Clone the repository from https://github.com/go-gitea/gitea and create a new branch for your work
65- If a translation file already exists, only update the changes
76- If a translation file does not exist, create a new one and add the link in `README.md` and each translated readme file
87- Do not modify the original `README.md` file
8+ - git commit to current branch and push to remote
Original file line number Diff line number Diff line change @@ -201,9 +201,18 @@ jobs:
201201 needs : files-changed
202202 runs-on : ubuntu-latest
203203 env :
204- OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
204+ OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
205205 steps :
206206 - uses : actions/checkout@v4
207- - run : |
207+ - name : translate-readme
208+ if : steps.openai-secret.outputs.skip != 'true'
209+ run : |
208210 npm install -g @openai/codex
209- codex exec --full-auto -c model="gpt-5-codex" -c model_providers.openai.base_url="${{ secrets.OPENAI_BASE_URL }}" -c model_providers.openai.env_key="OPENAI_API_KEY" "$(cat ./.codex/prompts/readme-translation.txt)"
211+ codex exec --full-auto \
212+ -c model="gpt-5-codex" \
213+ -c model_provider="gitea_openai" \
214+ -c model_providers.gitea_openai.name="gitea_openai" \
215+ -c model_providers.gitea_openai.base_url="${{ secrets.OPENAI_BASE_URL }}" \
216+ -c model_providers.gitea_openai.env_key="OPENAI_API_KEY" \
217+ -c model_providers.gitea_openai.wire_api="responses" \
218+ "$(cat ./.codex/prompts/readme-translation.txt)"
You can’t perform that action at this time.
0 commit comments