Skip to content

docs: add viral/fun feature PRDs for token-deathclock #6

docs: add viral/fun feature PRDs for token-deathclock

docs: add viral/fun feature PRDs for token-deathclock #6

Workflow file for this run

name: PR Preview Cleanup
on:
pull_request:
types: [closed]
permissions:
contents: write
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages
- name: Remove PR preview directory
run: |
PR_DIR="previews/pr-${{ github.event.number }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if [ -d "$PR_DIR" ]; then
git rm -rf "$PR_DIR"
git commit -m "chore: remove preview for PR #${{ github.event.number }}"
git push
echo "Removed $PR_DIR"
else
echo "No preview directory found at $PR_DIR — nothing to clean up"
fi