Skip to content

Commit 9d76ef6

Browse files
committed
chore: update docs locale sync workflow
1 parent e49e781 commit 9d76ef6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/docs-locale-sync.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@ jobs:
4747
echo "EOF"
4848
} >> "$GITHUB_OUTPUT"
4949
50+
- name: Install OpenCode
51+
if: steps.changes.outputs.has_changes == 'true'
52+
run: curl -fsSL https://opencode.ai/install | bash
53+
5054
- name: Sync locale docs with OpenCode
5155
if: steps.changes.outputs.has_changes == 'true'
52-
uses: sst/opencode/github@latest
5356
env:
5457
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
55-
GITHUB_TOKEN: ${{ steps.committer.outputs.token }}
5658
OPENCODE_CONFIG_CONTENT: |
5759
{
5860
"permission": {
@@ -96,11 +98,8 @@ jobs:
9698
}
9799
}
98100
}
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'
104103
Update localized docs to match the latest English docs changes.
105104
106105
Changed English doc files:
@@ -118,6 +117,7 @@ jobs:
118117
7. Keep locale docs structure aligned with their corresponding English pages.
119118
8. Do not modify English source docs in packages/web/src/content/docs/*.mdx.
120119
9. If no locale updates are needed, make no changes.
120+
EOF
121121
122122
- name: Commit and push locale docs updates
123123
if: steps.changes.outputs.has_changes == 'true'

0 commit comments

Comments
 (0)