We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f36d761 + eaf18da commit a7b592dCopy full SHA for a7b592d
.ci_scripts/update_docs
@@ -33,7 +33,11 @@ make html SPHINXOPTS="-W --keep-going -n"
33
linkcheck_failed=0
34
make linkcheck > /dev/null || linkcheck_failed=1
35
python ../.ci_scripts/display_linkcheck.py _build/linkcheck/output.json
36
-test "$linkcheck_failed" -eq 0
+
37
+if [[ "${GHREF}" != "refs/heads/main" ]]; then
38
+ test "$linkcheck_failed" -eq 0
39
+fi
40
41
mv _build/html ../docs
42
rm -rf _build
43
popd
.github/workflows/deploy.yml
@@ -29,6 +29,8 @@ jobs:
29
shell: bash -l {0}
30
run: |
31
source ./.ci_scripts/update_docs
32
+ env:
+ GHREF: ${{ github.ref }}
- name: deploy
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
0 commit comments