Skip to content

Resolves #1219: Update knuth-optimization.md #61

Resolves #1219: Update knuth-optimization.md

Resolves #1219: Update knuth-optimization.md #61

Workflow file for this run

name: Delete PR Preview
on:
pull_request_target:
types: [closed]
jobs:
delete_pr_preview:
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages
- name: Configure Git identity
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Delete PR directory
run: |
PR_DIR=${{ github.event.pull_request.number }}
git rm -r --ignore-unmatch "${PR_DIR}/" || echo "Directory not found"
git commit -m "Delete preview for #${{ github.event.pull_request.number }}"
git push origin gh-pages