Skip to content

Commit

Permalink
allow git commit to fail without changes, skip push test
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns committed Mar 15, 2024
1 parent 1bbe4b9 commit fc1916b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,14 @@ 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
run: |
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: |
Expand Down

0 comments on commit fc1916b

Please sign in to comment.