Skip to content

Delete Absoft and Lahey from compilers page #683

Delete Absoft and Lahey from compilers page

Delete Absoft and Lahey from compilers page #683

Workflow file for this run

# 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.