Skip to content

Commit 581c339

Browse files
Mpdreamzreakaleek
andauthored
Split docs preview: reusable Docker workflow + local dotnet workflow (#3064)
Co-authored-by: Jan Calanog <jan.calanog@elastic.co>
1 parent f1ded26 commit 581c339

3 files changed

Lines changed: 391 additions & 675 deletions

File tree

.github/workflows/preview-cleanup.yml renamed to .github/workflows/docs-preview-cleanup-local.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
name: preview-cleanup
1+
name: Docs preview cleanup (local)
2+
3+
# Runs when a PR is closed. Pairs with docs-preview-local.yml (push/PR build).
4+
# Inlined cleanup: GitHub deployment records + S3 preview prefix (no docs-actions call).
25

36
on:
4-
workflow_call: ~
57
pull_request_target:
68
types: [closed]
79

@@ -12,7 +14,7 @@ permissions:
1214

1315
jobs:
1416
destroy:
15-
if: github.event.repository.fork == false # Skip running the job on the fork itself (It still runs on PRs on the upstream from forks)
17+
if: github.event.repository.fork == false # Skip on fork repo; upstream PRs still run here.
1618
runs-on: ubuntu-latest
1719
steps:
1820
- name: Delete GitHub environment

0 commit comments

Comments
 (0)