GeezerVison is showing github.com — chore: update docs locale sync workflow · Krule/opencode@9d76ef6
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/docs-locale-sync.yml +7-7Lines changed: 7 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -47,12 +47,14 @@ jobs: |
47 | 47 | echo "EOF" |
48 | 48 | } >> "$GITHUB_OUTPUT" |
49 | 49 |
|
| 50 | + - name: Install OpenCode |
| 51 | + if: steps.changes.outputs.has_changes == 'true' |
| 52 | + run: curl -fsSL https://opencode.ai/install | bash |
| 53 | + |
50 | 54 | - name: Sync locale docs with OpenCode |
51 | 55 | if: steps.changes.outputs.has_changes == 'true' |
52 | | - uses: sst/opencode/github@latest |
53 | 56 | env: |
54 | 57 | OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} |
55 | | - GITHUB_TOKEN: ${{ steps.committer.outputs.token }} |
56 | 58 | OPENCODE_CONFIG_CONTENT: | |
57 | 59 | { |
58 | 60 | "permission": { |
|
96 | 98 | } |
97 | 99 | } |
98 | 100 | } |
99 | | - with: |
100 | | - model: opencode/gpt-5.3-codex |
101 | | - agent: docs |
102 | | - use_github_token: true |
103 | | - prompt: | |
| 101 | + run: | |
| 102 | + opencode run --agent docs --model opencode/gpt-5.3-codex <<'EOF' |
104 | 103 | Update localized docs to match the latest English docs changes. |
105 | 104 |
|
106 | 105 | Changed English doc files: |
@@ -118,6 +117,7 @@ jobs: |
118 | 117 | 7. Keep locale docs structure aligned with their corresponding English pages. |
119 | 118 | 8. Do not modify English source docs in packages/web/src/content/docs/*.mdx. |
120 | 119 | 9. If no locale updates are needed, make no changes. |
| 120 | + EOF |
121 | 121 |
|
122 | 122 | - name: Commit and push locale docs updates |
123 | 123 | if: steps.changes.outputs.has_changes == 'true' |
|