Improve HTML report landing page with scenario categorization and winning submissions #23
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: Cleanup PR Preview | |
| on: | |
| pull_request: | |
| types: [closed] | |
| permissions: | |
| contents: write | |
| jobs: | |
| cleanup: | |
| name: Remove PR Preview | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout gh-pages branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: gh-pages | |
| - name: Remove preview directory | |
| run: | | |
| PR_DIR="pr-${{ github.event.pull_request.number }}" | |
| if [ -d "$PR_DIR" ]; then | |
| echo "Removing preview directory: $PR_DIR" | |
| rm -rf "$PR_DIR" | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add . | |
| git commit -m "chore: remove PR #${{ github.event.pull_request.number }} preview" | |
| git push | |
| echo "✅ Preview directory removed successfully" | |
| else | |
| echo "ℹ️ Preview directory $PR_DIR does not exist, nothing to clean up" | |
| fi |