From d9835cc1e0850a99a876bd13a518cea6098e9097 Mon Sep 17 00:00:00 2001 From: Catherine Lee Date: Fri, 21 Oct 2022 12:22:28 -0700 Subject: [PATCH 1/5] docs push --- .circleci/scripts/python_doc_push_script.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/scripts/python_doc_push_script.sh b/.circleci/scripts/python_doc_push_script.sh index f9b019ec069b..7cef87f7b0e0 100755 --- a/.circleci/scripts/python_doc_push_script.sh +++ b/.circleci/scripts/python_doc_push_script.sh @@ -135,7 +135,10 @@ git commit -m "Generate Python docs from pytorch/pytorch@${GITHUB_SHA}" || true git status if [[ "${WITH_PUSH:-}" == true ]]; then + git push -u origin pytorchbot/temp-branch -f + sleep 30 git push -u origin "${branch}" + git push origin --delete pytorchbot/temp-branch fi popd From a36a751f4afa56ca313db5268c89fc24d5a824c9 Mon Sep 17 00:00:00 2001 From: Catherine Lee Date: Fri, 21 Oct 2022 12:25:10 -0700 Subject: [PATCH 2/5] also cpp --- .circleci/scripts/cpp_doc_push_script.sh | 3 +++ .circleci/scripts/python_doc_push_script.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/scripts/cpp_doc_push_script.sh b/.circleci/scripts/cpp_doc_push_script.sh index 4c22677e94bd..6c063948c1af 100755 --- a/.circleci/scripts/cpp_doc_push_script.sh +++ b/.circleci/scripts/cpp_doc_push_script.sh @@ -98,7 +98,10 @@ git commit -m "Generate C++ docs from pytorch/pytorch@${GITHUB_SHA}" || true git status if [[ "${WITH_PUSH:-}" == true ]]; then + git push -u origin pytorchbot/temp-branch-cpp -f + sleep 30 git push -u origin + git push origin --delete pytorchbot/temp-branch-cpp fi popd diff --git a/.circleci/scripts/python_doc_push_script.sh b/.circleci/scripts/python_doc_push_script.sh index 7cef87f7b0e0..7dc9a3e30bd9 100755 --- a/.circleci/scripts/python_doc_push_script.sh +++ b/.circleci/scripts/python_doc_push_script.sh @@ -135,10 +135,10 @@ git commit -m "Generate Python docs from pytorch/pytorch@${GITHUB_SHA}" || true git status if [[ "${WITH_PUSH:-}" == true ]]; then - git push -u origin pytorchbot/temp-branch -f + git push -u origin pytorchbot/temp-branch-py -f sleep 30 git push -u origin "${branch}" - git push origin --delete pytorchbot/temp-branch + git push origin --delete pytorchbot/temp-branch-py fi popd From ee0aed1de661e1b93670a071b11ebd7b043a8566 Mon Sep 17 00:00:00 2001 From: Catherine Lee Date: Fri, 21 Oct 2022 12:27:23 -0700 Subject: [PATCH 3/5] comment --- .circleci/scripts/cpp_doc_push_script.sh | 1 + .circleci/scripts/python_doc_push_script.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.circleci/scripts/cpp_doc_push_script.sh b/.circleci/scripts/cpp_doc_push_script.sh index 6c063948c1af..3b0f028d181c 100755 --- a/.circleci/scripts/cpp_doc_push_script.sh +++ b/.circleci/scripts/cpp_doc_push_script.sh @@ -98,6 +98,7 @@ 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 satisfying branch protections git push -u origin pytorchbot/temp-branch-cpp -f sleep 30 git push -u origin diff --git a/.circleci/scripts/python_doc_push_script.sh b/.circleci/scripts/python_doc_push_script.sh index 7dc9a3e30bd9..68f6f5e76ed9 100755 --- a/.circleci/scripts/python_doc_push_script.sh +++ b/.circleci/scripts/python_doc_push_script.sh @@ -135,6 +135,7 @@ 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 satisfying branch protections git push -u origin pytorchbot/temp-branch-py -f sleep 30 git push -u origin "${branch}" From a86b1a7916100569a19f9840087356c648fc195f Mon Sep 17 00:00:00 2001 From: Catherine Lee Date: Fri, 21 Oct 2022 12:29:31 -0700 Subject: [PATCH 4/5] update --- .circleci/scripts/cpp_doc_push_script.sh | 2 +- .circleci/scripts/python_doc_push_script.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/scripts/cpp_doc_push_script.sh b/.circleci/scripts/cpp_doc_push_script.sh index 3b0f028d181c..e333324fdfca 100755 --- a/.circleci/scripts/cpp_doc_push_script.sh +++ b/.circleci/scripts/cpp_doc_push_script.sh @@ -98,7 +98,7 @@ 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 satisfying branch protections + # push to a temp branch first to trigger CLA check and satisfy branch protections git push -u origin pytorchbot/temp-branch-cpp -f sleep 30 git push -u origin diff --git a/.circleci/scripts/python_doc_push_script.sh b/.circleci/scripts/python_doc_push_script.sh index 68f6f5e76ed9..3dff2da53b81 100755 --- a/.circleci/scripts/python_doc_push_script.sh +++ b/.circleci/scripts/python_doc_push_script.sh @@ -135,7 +135,7 @@ 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 satisfying branch protections + # push to a temp branch first to trigger CLA check and satisfy branch protections git push -u origin pytorchbot/temp-branch-py -f sleep 30 git push -u origin "${branch}" From 471aae29790bd4cd1732add60bdff06cc4b368b4 Mon Sep 17 00:00:00 2001 From: Catherine Lee Date: Fri, 21 Oct 2022 15:39:08 -0700 Subject: [PATCH 5/5] update --- .circleci/scripts/cpp_doc_push_script.sh | 3 +-- .circleci/scripts/python_doc_push_script.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.circleci/scripts/cpp_doc_push_script.sh b/.circleci/scripts/cpp_doc_push_script.sh index e333324fdfca..6e66514ae93b 100755 --- a/.circleci/scripts/cpp_doc_push_script.sh +++ b/.circleci/scripts/cpp_doc_push_script.sh @@ -99,10 +99,9 @@ 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 pytorchbot/temp-branch-cpp -f + git push -u origin HEAD:pytorchbot/temp-branch-cpp -f sleep 30 git push -u origin - git push origin --delete pytorchbot/temp-branch-cpp fi popd diff --git a/.circleci/scripts/python_doc_push_script.sh b/.circleci/scripts/python_doc_push_script.sh index 3dff2da53b81..d255f77c82e8 100755 --- a/.circleci/scripts/python_doc_push_script.sh +++ b/.circleci/scripts/python_doc_push_script.sh @@ -136,10 +136,9 @@ 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 pytorchbot/temp-branch-py -f + git push -u origin HEAD:pytorchbot/temp-branch-py -f sleep 30 git push -u origin "${branch}" - git push origin --delete pytorchbot/temp-branch-py fi popd