Skip to content

Commit c1a222e

Browse files
committed
fix
1 parent 182881b commit c1a222e

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/pull-compliance.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,6 @@ jobs:
202202
runs-on: ubuntu-latest
203203
steps:
204204
- uses: actions/checkout@v4
205-
- run:
206-
npm install -g @openai/codex
207-
- run: |
208-
codex exec "Your task is translate `README.md` into several languages. The translation should sound natural and easy to read.
209-
Target languages: Chinese (zh-cn), Chinese (zh-tw), Japanese (ja-JP)
210-
Use the following format for each translation: `README.{language_code}-{country_code}.md`
211-
Rules:
212-
- Clone the repository from https://github.com/go-gitea/gitea and create a new branch for your work
213-
- If a translation file already exists, only update the changes
214-
- If a translation file does not exist, create a new one and add the link in `README.md` and each translated readme file
215-
- Do not modify the original `README.md` file", expect the links to each translation file
205+
- run: npm install -g @openai/codex
206+
- name: Generate README translations
207+
run: codex exec "$(cat ./readme-translation.txt)"

readme-translation-prompt.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Your task is translate `README.md` into several languages. The translation should sound natural and easy to read.
2+
Target languages: Chinese (zh-cn), Chinese (zh-tw), Japanese (ja-JP)
3+
Use the following format for each translation: `README.{language_code}-{country_code}.md`
4+
Rules:
5+
- Clone the repository from https://github.com/go-gitea/gitea and create a new branch for your work
6+
- If a translation file already exists, only update the changes
7+
- If a translation file does not exist, create a new one and add the link in `README.md` and each translated readme file
8+
- Do not modify the original `README.md` file

0 commit comments

Comments
 (0)