From fc1916bda82fc813a49e01888daf4876ebc4a3cc Mon Sep 17 00:00:00 2001 From: Jackson Burns Date: Thu, 7 Mar 2024 13:06:13 -0500 Subject: [PATCH] allow git commit to fail without changes, skip push test --- .github/workflows/docs.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index aff19b7b83..aaf88211cf 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -81,7 +81,7 @@ jobs: cd build/html touch .nojekyll git add -A --force . - git commit -m "Automated documentation rebuild" + git commit -m "Automated documentation rebuild" || true # allow this to fail if no changes were made - name: Check documentation links continue-on-error: true @@ -89,12 +89,6 @@ jobs: cd documentation sphinx-build -b linkcheck -d build/doctrees/ source/ build/linkcheck | grep -e broken -e redirect | grep -v -e 'redirect https://doi.org/' -e 'broken https://doi.org/.* 403 Client Error: Forbidden' - - name: Test Publish Documentation - if: ${{ github.event_name != 'push' && github.repository == 'ReactionMechanismGenerator/RMG-Py' }} - run: | - cd documentation/build/html - git push --dry-run origin gh-pages - - name: Publish Updated Documentation if: ${{ github.event_name == 'push' && github.repository == 'ReactionMechanismGenerator/RMG-Py' }} run: |