Bump sphinx from 5.3.0 to 7.1.2 #685
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Github action to cleanup a PR preview | |
# Runs when a pull request is merged or comment contains '#delete_preview' | |
# | |
name: PR Preview Cleanup | |
on: | |
issue_comment: | |
types: [created] | |
pull_request: | |
types: | |
- closed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == true || contains(github.event.comment.body, '#delete_preview') | |
steps: | |
# Checkout existing gh-pages branch into PUBLISH_DIR | |
- name: Checkout gh-pages | |
uses: actions/checkout@v3 | |
with: | |
ref: gh-pages | |
# Cleanup preview files | |
- name: PR Cleanup | |
run: rm -rf pr/${{github.event.issue.number}} | |
- name: Commit and push to gh-pages | |
uses: EndBug/[email protected] | |
with: | |
committer_email: [email protected] | |
committer_name: Fortran | |
message: "Sphinx build cleanup pr/${{github.event.issue.number}}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Comment on pull request | |
- name: Comment on pull request | |
uses: peter-evans/create-or-update-comment@v3 | |
if: contains(github.event.comment.body, '#delete_preview') | |
with: | |
issue-number: ${{github.event.issue.number}} | |
body: The preview build for this PR has now been deleted. |