Skip to content

Commit

Permalink
Add doc-builder CLI to delete_doc.yml (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 authored Aug 25, 2022
1 parent d8dc51f commit 31b9a63
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/delete_doc_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
repository: 'huggingface/doc-builder'
path: doc-builder

- name: Set env variables
run: |
if [ -z "${{ secrets.token }}" ]
Expand All @@ -37,6 +42,15 @@ jobs:
echo "package_name=${{ inputs.package_name }}" >> $GITHUB_ENV
fi
- name: Setup environment
shell: bash
run: |
pip uninstall -y doc-builder
cd doc-builder
git pull origin main
pip install .
cd ..
- name: Push to repositories
run: |
doc-builder push ${{ env.package_name }} --doc_build_repo_id "huggingface/doc-build-dev" --token ${{ env.write_token }} --commit_msg "Closed PR ${{ inputs.pr_number }} in ${{ env.package_name }}" --n_retries 5 --doc_version_folder "pr_${{ inputs.pr_number }}" --is_remove
Expand Down

0 comments on commit 31b9a63

Please sign in to comment.