Skip to content

Commit d5e91d5

Browse files
committed
test
1 parent 03fce8f commit d5e91d5

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed
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

.github/workflows/files-changed.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
value: ${{ jobs.detect.outputs.swagger }}
2020
yaml:
2121
value: ${{ jobs.detect.outputs.yaml }}
22+
readme:
23+
value: ${{ jobs.detect.outputs.readme }}
2224

2325
jobs:
2426
detect:
@@ -33,6 +35,7 @@ jobs:
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
@@ -98,3 +101,6 @@ jobs:
98101
- "**/*.yaml"
99102
- ".yamllint.yaml"
100103
- "pyproject.toml"
104+
105+
readme:
106+
- "README.md"

.github/workflows/pull-compliance.yml

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
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

0 commit comments

Comments
 (0)