Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: preview-cleanup
name: Docs preview cleanup (local)

# Runs when a PR is closed. Pairs with docs-preview-local.yml (push/PR build).
# Inlined cleanup: GitHub deployment records + S3 preview prefix (no docs-actions call).

on:
workflow_call: ~
pull_request_target:
types: [closed]

Expand All @@ -12,7 +14,7 @@ permissions:

jobs:
destroy:
if: github.event.repository.fork == false # Skip running the job on the fork itself (It still runs on PRs on the upstream from forks)
if: github.event.repository.fork == false # Skip on fork repo; upstream PRs still run here.
runs-on: ubuntu-latest
steps:
- name: Delete GitHub environment
Expand Down
Loading
Loading