Skip to content

test pr action

test pr action #12

name: Workflow that generate a PR to milvus doc
on:
push:
paths:
- 'bootcamp/tutorials/**'
jobs:
PR-to-Milvus-Doc:
# - 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
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'

Check failure on line 30 in .github/workflows/pr_to_milvus_doc.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr_to_milvus_doc.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
- 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 Chengzi
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
torch milvus-docs/site/en/integrations/test_file.py #TODO: remove this line
git add .
git commit -m "Update evaluation_with_ragas.md"
git push
# - name: Create PR
# uses: peter-evans/create-pull-request@v3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# branch: new-branch
# title: "Auto-submitted PR"
# body: "This is an automatically submitted PR"
# repository: username/repo-to-submit-pr-to