File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1919        value : ${{ jobs.detect.outputs.swagger }} 
2020      yaml :
2121        value : ${{ jobs.detect.outputs.yaml }} 
22+       readme :
23+         value : ${{ jobs.detect.outputs.readme }} 
2224
2325jobs :
2426  detect :
3335      docker : ${{ steps.changes.outputs.docker }} 
3436      swagger : ${{ steps.changes.outputs.swagger }} 
3537      yaml : ${{ steps.changes.outputs.yaml }} 
38+       readme : ${{ steps.changes.outputs.readme }} 
3639    steps :
3740      - uses : actions/checkout@v4 
3841      - uses : dorny/paths-filter@v3 
98101              - "**/*.yaml" 
99102              - ".yamllint.yaml" 
100103              - "pyproject.toml" 
104+ 
105+             readme: 
106+               - "README.md" 
Original file line number Diff line number Diff line change @@ -195,3 +195,15 @@ jobs:
195195          go-version-file : go.mod 
196196          check-latest : true 
197197      - run : make lint-actions 
198+ 
199+   readme :
200+     if : needs.files-changed.outputs.readme == 'true' 
201+     needs : files-changed 
202+     runs-on : ubuntu-latest 
203+     env :
204+       OPENAI_API_KEY  : ${{ secrets.OPENAI_API_KEY  }} 
205+     steps :
206+       - uses : actions/checkout@v4 
207+       - run : | 
208+           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)" 
Original file line number Diff line number Diff line change 1111[ ![ Contribute with Gitpod] ( https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod&color=green )] ( https://gitpod.io/#https://github.com/go-gitea/gitea ) 
1212[ ![ ] ( https://badges.crowdin.net/gitea/localized.svg )] ( https://translate.gitea.com  " Crowdin ") 
1313
14+ this line is added for test
15+ 
1416[ 繁體中文] ( ./README.zh-tw.md )  | [ 简体中文] ( ./README.zh-cn.md ) 
1517
1618## Purpose  
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments