Skip to content

Commit bcea1e9

Browse files
committed
change the path to the scripts
1 parent c748b45 commit bcea1e9

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/sync-docs-cn-to-en.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,21 @@ on:
2525
jobs:
2626
sync-docs:
2727
runs-on: ubuntu-latest
28-
28+
2929
steps:
3030
- name: Checkout current repository
3131
uses: actions/checkout@v4
3232
with:
3333
token: ${{ secrets.GITHUB_TOKEN }}
3434
fetch-depth: 0
3535

36+
- name: Checkout ai-pr-translator repository
37+
uses: actions/checkout@v4
38+
with:
39+
repository: "qiancai/ai-pr-translator"
40+
ref: "main"
41+
path: "ai-pr-translator"
42+
3643
- name: Set up Python
3744
uses: actions/setup-python@v4
3845
with:
@@ -41,7 +48,7 @@ jobs:
4148
- name: Install dependencies
4249
run: |
4350
python -m pip install --upgrade pip
44-
pip install -r scripts/translate_doc_pr/requirements.txt
51+
pip install -r ai-pr-translator/scripts/requirements.txt
4552
4653
- name: Extract PR information
4754
id: extract_info
@@ -101,7 +108,7 @@ jobs:
101108
AI_PROVIDER: ${{ github.event.inputs.ai_provider }}
102109
TARGET_REPO_PATH: ${{ github.workspace }}/target_repo
103110
run: |
104-
cd scripts/translate_doc_pr
111+
cd ai-pr-translator/scripts
105112
if python main_workflow.py; then
106113
echo "sync_success=true" >> $GITHUB_OUTPUT
107114
echo "✅ Sync script completed successfully"
@@ -120,13 +127,13 @@ jobs:
120127
echo "No changes to commit"
121128
else
122129
git commit -m "Auto-sync: Update English docs from Chinese PR ${{ github.event.inputs.source_pr_url }}
123-
130+
124131
Synced from: ${{ github.event.inputs.source_pr_url }}
125132
Target PR: ${{ github.event.inputs.target_pr_url }}
126133
AI Provider: ${{ github.event.inputs.ai_provider }}
127-
134+
128135
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
129-
136+
130137
git push origin ${{ steps.target_branch.outputs.target_branch }}
131138
echo "Changes pushed to target PR branch: ${{ steps.target_branch.outputs.target_branch }}"
132139
fi

0 commit comments

Comments
 (0)