Skip to content

Add optional cleanup-preview workflow to preview changes page #5117

Merged
devalog merged 2 commits intomainfrom
fern/add-preview-cleanup-workflow
Apr 23, 2026
Merged

Add optional cleanup-preview workflow to preview changes page #5117
devalog merged 2 commits intomainfrom
fern/add-preview-cleanup-workflow

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented Apr 23, 2026

Adds the cleanup-preview GitHub Actions workflow as an optional accordion on the Preview changes page. The workflow runs on pull_request: closed and calls fern docs preview delete --id <branch> when the PR is merged, so merged PRs don't leave stale preview deployments behind.

Requested by: Fern Support

@fern-api fern-api Bot requested a review from devalog as a code owner April 23, 2026 11:39
jobs:
cleanup:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[FernStyles.Current] Avoid time-relative terms like 'latest' that become outdated

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

@fern-api
Copy link
Copy Markdown
Contributor Author

fern-api Bot commented Apr 23, 2026

Requested by: devin
Slack thread: View conversation

@devalog devalog merged commit f5f7b5b into main Apr 23, 2026
2 checks passed
@devalog devalog deleted the fern/add-preview-cleanup-workflow branch April 23, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants