forked from milvus-io/bootcamp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ChengZi <[email protected]>
- Loading branch information
1 parent
6096264
commit 91ed258
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters