Skip to content

Commit 992e7f4

Browse files
committed
fix
1 parent d5e91d5 commit 992e7f4

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.codex/prompts/readme-translation.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Your task is translate `README.md` into several languages. The translation shoul
22
Target languages: Chinese (zh-cn), Chinese (zh-tw), Japanese (ja-JP)
33
Use the following format for each translation: `README.{language_code}-{country_code}.md`
44
Rules:
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

.github/workflows/pull-compliance.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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)"

0 commit comments

Comments
 (0)