docs: add viral/fun feature PRDs for token-deathclock #6
Workflow file for this run
This file contains hidden or 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
| 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 |