Skip to content

Introduce next-gen status page #33

Introduce next-gen status page

Introduce next-gen status page #33

Workflow file for this run

name: Clean up after closing/merging a PR
on:
pull_request:
types: [closed]
jobs:
delete_preview:
runs-on: ubuntu-latest
steps:
- name: Set up mutex
uses: ben-z/gh-action-mutex@v1.0-alpha-3
with:
branch: mutex-gh-pages
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
ref: gh-pages
- name: Delete PR Preview
run: |
rm -r './previews/pr-${{ github.event.pull_request.number }}'
git config --local user.name "github-bot"
git config --local user.email "github-bot@users.noreply.github.com"
git commit -am "Delete preview for PR #${{ github.event.pull_request.number }}"
- name: Push changes
uses: ad-m/github-push-action@a3fd843e49cd58d296bdd2431c4853569a1b900f
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages