Skip to content

Commit 2bc1617

Browse files
authored
Remove env var from the doc build (#145)
* Update doc_build.yml * Update
1 parent 0470325 commit 2bc1617

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/doc_build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
# Grant write permission here so that the doc can be pushed to gh-pages branch
6868
contents: write
6969
needs: build_docs
70-
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'))
70+
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')
7171
steps:
7272
- name: Checkout
7373
uses: actions/checkout@v3
@@ -87,10 +87,7 @@ jobs:
8787
find docs -name "*.html" -print0 | xargs -0 sed -i '/<head>/a \ \ <meta name="robots" content="noindex">';
8888
fi
8989
- name: Move and commit changes
90-
env:
91-
GITHUB_PYTORCHBOT_TOKEN: ${{ secrets.GH_PYTORCHBOT_TOKEN }}
9290
run: |
93-
git remote set-url origin https://pytorchbot:${GITHUB_PYTORCHBOT_TOKEN}@github.com/pytorch-labs/ao.git
9491
set -euo pipefail
9592
REF_TYPE=${{ github.ref_type }}
9693
REF_NAME=${{ github.ref_name }}

0 commit comments

Comments
 (0)