forked from milvus-io/bootcamp
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.22 KB
/
pr_to_milvus_doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Workflow that generate a PR to milvus doc
on:
push:
paths:
- 'bootcamp/tutorials/**'
jobs:
PR-to-Milvus-Doc:
runs-on: ubuntu-latest
env:
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter
- name: Convert NB to Markdown
run: jupyter nbconvert --to markdown bootcamp/tutorials/integration/evaluation_with_ragas.ipynb
- name: Clone milvus-docs repository
run: |
git remote set-url origin https://[email protected]/milvus-io/milvus-docs.git
git config --global user.email "[email protected]"
git config --global user.name "zc277584121"
git clone https://user:[email protected]/milvus-io/milvus-docs.git
mv -f bootcamp/tutorials/integration/evaluation_with_ragas.md milvus-docs/site/en/integrations/
cd milvus-docs
git add .
git commit -m "Update evaluation_with_ragas.md"
git push