From 9adf29fb259df3e8752e7fc661cd882448808a45 Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Wed, 17 Apr 2024 15:33:53 -0700 Subject: [PATCH 1/2] Update doc_build.yml --- .github/workflows/doc_build.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/doc_build.yml b/.github/workflows/doc_build.yml index 0ccf556e0..edc65665f 100644 --- a/.github/workflows/doc_build.yml +++ b/.github/workflows/doc_build.yml @@ -87,10 +87,7 @@ jobs: find docs -name "*.html" -print0 | xargs -0 sed -i '//a \ \ '; fi - name: Move and commit changes - env: - GITHUB_PYTORCHBOT_TOKEN: ${{ secrets.GH_PYTORCHBOT_TOKEN }} run: | - git remote set-url origin https://pytorchbot:${GITHUB_PYTORCHBOT_TOKEN}@github.com/pytorch-labs/ao.git set -euo pipefail REF_TYPE=${{ github.ref_type }} REF_NAME=${{ github.ref_name }} From 5f2474d936944490f807ba86953a757353b16e14 Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Wed, 17 Apr 2024 15:57:04 -0700 Subject: [PATCH 2/2] Update --- .github/workflows/doc_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc_build.yml b/.github/workflows/doc_build.yml index edc65665f..03a0a53c6 100644 --- a/.github/workflows/doc_build.yml +++ b/.github/workflows/doc_build.yml @@ -67,7 +67,7 @@ jobs: # Grant write permission here so that the doc can be pushed to gh-pages branch contents: write needs: build_docs - if: github.repository == 'pytorch-labs/ao' && github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/tags/v')) + if: github.repository == 'pytorch-labs/ao' && github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch') steps: - name: Checkout uses: actions/checkout@v3