Skip to content

Commit

Permalink
fix docs push (pytorch#87498)
Browse files Browse the repository at this point in the history
push docs to temp branch first then push to actual branch to satisfy CLA check in branch protections
Pull Request resolved: pytorch#87498
Approved by: https://github.com/malfet
  • Loading branch information
clee2000 authored and atalman committed Oct 24, 2022
1 parent 8569a44 commit 4f7aea1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/scripts/cpp_doc_push_script.sh
Expand Up @@ -98,6 +98,9 @@ git commit -m "Generate C++ docs from pytorch/pytorch@${GITHUB_SHA}" || true
git status

if [[ "${WITH_PUSH:-}" == true ]]; then
# push to a temp branch first to trigger CLA check and satisfy branch protections
git push -u origin HEAD:pytorchbot/temp-branch-cpp -f
sleep 30
git push -u origin
fi

Expand Down
3 changes: 3 additions & 0 deletions .circleci/scripts/python_doc_push_script.sh
Expand Up @@ -135,6 +135,9 @@ git commit -m "Generate Python docs from pytorch/pytorch@${GITHUB_SHA}" || true
git status

if [[ "${WITH_PUSH:-}" == true ]]; then
# push to a temp branch first to trigger CLA check and satisfy branch protections
git push -u origin HEAD:pytorchbot/temp-branch-py -f
sleep 30
git push -u origin "${branch}"
fi

Expand Down

0 comments on commit 4f7aea1

Please sign in to comment.