Skip to content

ci: gate PR preview builds#603

Merged
thymikee merged 2 commits into
mainfrom
codex/gate-pr-previews
May 28, 2026
Merged

ci: gate PR preview builds#603
thymikee merged 2 commits into
mainfrom
codex/gate-pr-previews

Conversation

@thymikee

Copy link
Copy Markdown
Member

Summary

Only build and deploy PR previews when docs-preview inputs change. The preview workflow now runs for opened/reopened/synchronized PRs that touch website/docs build inputs, while closed PR cleanup is handled by a separate closed-only workflow without path filters.

This keeps preview cleanup reliable and avoids the docs install/build/deploy path for code-only PRs.

Touched-file count: 2. Scope stayed within PR preview workflow plumbing.

Validation

Validated workflow edits with git diff --check and local YAML parsing for both preview workflows. This PR itself is expected to run the preview workflow because it edits .github/workflows/pr-preview.yml; the skip behavior applies to subsequent code-only PRs after merge.

@github-actions

github-actions Bot commented May 28, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-603/

Built to branch gh-pages at 2026-05-28 14:27 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ac3c4c267

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- closed
paths:
- "website/**"
- ".github/actions/build-docs/action.yml"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include setup action changes in preview triggers

When a PR changes only .github/actions/setup-node-pnpm/action.yml, this path filter skips the preview workflow even though the docs build action invoked below delegates its toolchain setup to that composite action (.github/actions/build-docs/action.yml:12-14). That means changes to the Node/pnpm install path can merge without exercising the PR preview build they affect; add the setup action path (or the whole .github/actions/** subtree) to this trigger list.

Useful? React with 👍 / 👎.

@thymikee thymikee force-pushed the codex/gate-pr-previews branch from 926a8b5 to 484f1fc Compare May 28, 2026 15:08
@thymikee thymikee merged commit b2a39d2 into main May 28, 2026
13 of 14 checks passed
@thymikee thymikee deleted the codex/gate-pr-previews branch May 28, 2026 15:10
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.

1 participant