summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-02-27 09:18:17 -0600
committerAdam <[email protected]>2026-02-27 09:18:17 -0600
commit9d76ef6c6618ccd8896abc48cc05299790d56fc0 (patch)
tree07aa3becc4806f907e081e686342f42078a6490b
parente49e781cb88df0030b4ed9408c771e29f02614af (diff)
downloadopencode-9d76ef6c6618ccd8896abc48cc05299790d56fc0.tar.gz
opencode-9d76ef6c6618ccd8896abc48cc05299790d56fc0.zip
chore: update docs locale sync workflow
-rw-r--r--.github/workflows/docs-locale-sync.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/.github/workflows/docs-locale-sync.yml b/.github/workflows/docs-locale-sync.yml
index f62afae4b..2bc19d614 100644
--- a/.github/workflows/docs-locale-sync.yml
+++ b/.github/workflows/docs-locale-sync.yml
@@ -47,12 +47,14 @@ jobs:
echo "EOF"
} >> "$GITHUB_OUTPUT"
+ - name: Install OpenCode
+ if: steps.changes.outputs.has_changes == 'true'
+ run: curl -fsSL https://opencode.ai/install | bash
+
- name: Sync locale docs with OpenCode
if: steps.changes.outputs.has_changes == 'true'
- uses: sst/opencode/github@latest
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
- GITHUB_TOKEN: ${{ steps.committer.outputs.token }}
OPENCODE_CONFIG_CONTENT: |
{
"permission": {
@@ -96,11 +98,8 @@ jobs:
}
}
}
- with:
- model: opencode/gpt-5.3-codex
- agent: docs
- use_github_token: true
- prompt: |
+ run: |
+ opencode run --agent docs --model opencode/gpt-5.3-codex <<'EOF'
Update localized docs to match the latest English docs changes.
Changed English doc files:
@@ -118,6 +117,7 @@ jobs:
7. Keep locale docs structure aligned with their corresponding English pages.
8. Do not modify English source docs in packages/web/src/content/docs/*.mdx.
9. If no locale updates are needed, make no changes.
+ EOF
- name: Commit and push locale docs updates
if: steps.changes.outputs.has_changes == 'true'