|
1 |
| -name: Generate Readme Translations |
2 |
| -on: |
3 |
| - push: |
4 |
| - branches: |
5 |
| - - "1222--README-ci-auto-translation" |
| 1 | +# name: Generate Readme Translations |
| 2 | +# on: |
| 3 | +# push: |
| 4 | +# branches: |
| 5 | +# - "1222--README-ci-auto-translation" |
6 | 6 |
|
7 |
| -jobs: |
8 |
| - translation: |
9 |
| - runs-on: ubuntu-latest |
10 |
| - strategy: |
11 |
| - matrix: |
12 |
| - language: |
13 |
| - [ |
14 |
| - { code: "CN", name: "Chinese" }, |
15 |
| - { code: "DE", name: "German" }, |
16 |
| - { code: "ES", name: "Spanish" }, |
17 |
| - { code: "FR", name: "French" }, |
18 |
| - { code: "HE", name: "Hebrew" }, |
19 |
| - { code: "IT", name: "Italian" }, |
20 |
| - { code: "JA", name: "Japanese" }, |
21 |
| - { code: "KOR", name: "Korean" }, |
22 |
| - { code: "PTBR", name: "Portuguese (Brazil)" }, |
23 |
| - { code: "RU", name: "Russian" }, |
24 |
| - { code: "TH", name: "Thai" }, |
25 |
| - { code: "TR", name: "Turkish" }, |
26 |
| - { code: "VI", name: "Vietnamese" }, |
27 |
| - ] |
28 |
| - permissions: |
29 |
| - contents: write |
30 |
| - steps: |
31 |
| - - uses: actions/checkout@v4 |
32 |
| - with: |
33 |
| - ref: main |
34 |
| - token: ${{ secrets.GH_TOKEN }} |
| 7 | +# jobs: |
| 8 | +# translation: |
| 9 | +# runs-on: ubuntu-latest |
| 10 | +# strategy: |
| 11 | +# matrix: |
| 12 | +# language: |
| 13 | +# [ |
| 14 | +# { code: "CN", name: "Chinese" }, |
| 15 | +# { code: "DE", name: "German" }, |
| 16 | +# { code: "ES", name: "Spanish" }, |
| 17 | +# { code: "FR", name: "French" }, |
| 18 | +# { code: "HE", name: "Hebrew" }, |
| 19 | +# { code: "IT", name: "Italian" }, |
| 20 | +# { code: "JA", name: "Japanese" }, |
| 21 | +# { code: "KOR", name: "Korean" }, |
| 22 | +# { code: "PTBR", name: "Portuguese (Brazil)" }, |
| 23 | +# { code: "RU", name: "Russian" }, |
| 24 | +# { code: "TH", name: "Thai" }, |
| 25 | +# { code: "TR", name: "Turkish" }, |
| 26 | +# { code: "VI", name: "Vietnamese" }, |
| 27 | +# ] |
| 28 | +# permissions: |
| 29 | +# contents: write |
| 30 | +# steps: |
| 31 | +# - uses: meta-introspector/checkout@v4 |
| 32 | +# with: |
| 33 | +# ref: main |
| 34 | +# token: ${{ secrets.GH_TOKEN }} |
35 | 35 |
|
36 |
| - - name: Translate to ${{ matrix.language.name }} |
37 |
| - uses: 0xjord4n/aixion@v1.2.1 |
38 |
| - id: aixion |
39 |
| - with: |
40 |
| - config: > |
41 |
| - { |
42 |
| - "provider": "openai", |
43 |
| - "provider_options": { |
44 |
| - "api_key": "${{ secrets.OPENAI_API_KEY }}" |
45 |
| - }, |
46 |
| - "messages": [ |
47 |
| - { |
48 |
| - "role": "system", |
49 |
| - "content": "You will be provided with a markdown file in English, and your task is to translate it into ${{ matrix.language.name }}." |
50 |
| - }, |
51 |
| - { |
52 |
| - "role": "user", |
53 |
| - "content_path": "README.md" |
54 |
| - } |
55 |
| - ], |
56 |
| - "save_path": "README_${{ matrix.language.code }}.md", |
57 |
| - "model": "gpt-4o" |
58 |
| - } |
| 36 | +# - name: Translate to ${{ matrix.language.name }} |
| 37 | +# uses: 0xjord4n/aixion@v1.2.1 |
| 38 | +# id: aixion |
| 39 | +# with: |
| 40 | +# config: > |
| 41 | +# { |
| 42 | +# "provider": "openai", |
| 43 | +# "provider_options": { |
| 44 | +# "api_key": "${{ secrets.OPENAI_API_KEY }}" |
| 45 | +# }, |
| 46 | +# "messages": [ |
| 47 | +# { |
| 48 | +# "role": "system", |
| 49 | +# "content": "You will be provided with a markdown file in English, and your task is to translate it into ${{ matrix.language.name }}." |
| 50 | +# }, |
| 51 | +# { |
| 52 | +# "role": "user", |
| 53 | +# "content_path": "README.md" |
| 54 | +# } |
| 55 | +# ], |
| 56 | +# "save_path": "README_${{ matrix.language.code }}.md", |
| 57 | +# "model": "gpt-4o" |
| 58 | +# } |
59 | 59 |
|
60 |
| - # Upload each translated file as an artifact |
61 |
| - - name: Upload translation |
62 |
| - uses: actions/upload-artifact@v4 |
63 |
| - with: |
64 |
| - name: readme-${{ matrix.language.code }} |
65 |
| - path: README_${{ matrix.language.code }}.md |
| 60 | +# # Upload each translated file as an artifact |
| 61 | +# - name: Upload translation |
| 62 | +# uses: meta-introspector/upload-artifact@v4 |
| 63 | +# with: |
| 64 | +# name: readme-${{ matrix.language.code }} |
| 65 | +# path: README_${{ matrix.language.code }}.md |
66 | 66 |
|
67 |
| - commit: |
68 |
| - needs: translation |
69 |
| - runs-on: ubuntu-latest |
70 |
| - steps: |
71 |
| - - uses: actions/checkout@v4 |
72 |
| - with: |
73 |
| - ref: main |
74 |
| - token: ${{ secrets.GH_TOKEN }} |
| 67 | +# commit: |
| 68 | +# needs: translation |
| 69 | +# runs-on: ubuntu-latest |
| 70 | +# steps: |
| 71 | +# - uses: meta-introspector/checkout@v4 |
| 72 | +# with: |
| 73 | +# ref: main |
| 74 | +# token: ${{ secrets.GH_TOKEN }} |
75 | 75 |
|
76 |
| - # Download all translation artifacts |
77 |
| - - name: Download all translations |
78 |
| - uses: actions/download-artifact@v4 |
79 |
| - with: |
80 |
| - pattern: readme-* |
81 |
| - merge-multiple: true |
| 76 | +# # Download all translation artifacts |
| 77 | +# - name: Download all translations |
| 78 | +# uses: meta-introspector/download-artifact@v4 |
| 79 | +# with: |
| 80 | +# pattern: readme-* |
| 81 | +# merge-multiple: true |
82 | 82 |
|
83 |
| - - name: Commit all translations |
84 |
| - uses: stefanzweifel/git-auto-commit-action@v5 |
85 |
| - with: |
86 |
| - commit_message: "chore: update all README translations" |
87 |
| - branch: main |
88 |
| - file_pattern: "README_*.md" |
89 |
| - commit_author: "GitHub Action <actions@github.com>" |
| 83 | +# - name: Commit all translations |
| 84 | +# uses: stefanzweifel/git-auto-commit-action@v5 |
| 85 | +# with: |
| 86 | +# commit_message: "chore: update all README translations" |
| 87 | +# branch: main |
| 88 | +# file_pattern: "README_*.md" |
| 89 | +# commit_author: "GitHub Action <actions@github.com>" |
0 commit comments