Skip to content

Automatically set legacy page theme with current theme #38

Automatically set legacy page theme with current theme

Automatically set legacy page theme with current theme #38

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/[email protected]
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 "[email protected]"
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