Skip to content

Allow ReachabilityAnalysis v0.33 #59

Allow ReachabilityAnalysis v0.33

Allow ReachabilityAnalysis v0.33 #59

# https://documenter.juliadocs.org/stable/man/hosting/#Cleaning-up-gh-pages

Check warning on line 1 in .github/workflows/doc-preview-cleanup.yml

View workflow run for this annotation

GitHub Actions / Doc preview cleanup

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
name: Doc preview cleanup
on:
pull_request_target:
types: [closed]
workflow_dispatch:
jobs:
doc-preview-cleanup:
runs-on: ubuntu-slim
steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v7
with:
ref: gh-pages
- name: Delete preview and history
run: |
if [ -d "previews/PR$PRNUM" ]; then
git config user.name "Documenter.jl"
git config user.email "documenter@juliadocs.github.io"
git rm -rf "previews/PR$PRNUM"
git commit -m "delete preview"
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
git push --force origin gh-pages-new:gh-pages
fi
env:
PRNUM: ${{ github.event.number }}