Skip to content

ci: skip site build when no site files changed - #373

Closed
ralphbean wants to merge 1 commit into
mainfrom
fix/skip-site-build-on-unrelated-changes
Closed

ralphbean wants to merge 1 commit into
mainfrom
fix/skip-site-build-on-unrelated-changes

Conversation

@ralphbean

Copy link
Copy Markdown
Member

Summary

  • Add paths: filters to the Build Site workflow so it only triggers when site-related files are modified
  • The Deploy Site workflow chains off Build Site via workflow_run, so it is automatically skipped too

Filtered paths

Glob Reason
web/** Static site source (index.html)
cloudflare_site/** Worker source + wrangler config
.github/workflows/site-build.yml Build workflow itself
.github/workflows/site-deploy.yml Deploy workflow itself

Test plan

  • This PR itself should not trigger a site build (no site files changed)
  • A future PR touching web/ or cloudflare_site/ should still trigger the build

🤖 Generated with Claude Code

Add path filters to the Build Site workflow so it only runs when files
that feed into the site are modified: web/, cloudflare_site/, and the
two site workflow files themselves.

The Deploy Site workflow chains off Build Site via workflow_run, so it
is automatically skipped when the build doesn't run.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@github-actions

Copy link
Copy Markdown

Site preview

Preview: https://d8b31d24-site.fullsend-ai.workers.dev

Commit: fb7ae7fcf8a1dd4629ec483c1d487783f0a38293

@ralphbean

Copy link
Copy Markdown
Member Author

.. just trying to cut down some on noise.

@ralphbean
ralphbean requested a review from ifireball April 23, 2026 15:59

@ifireball ifireball left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There are some relevant files in the repo root as well such as packages.json

@fullsend-ai-review fullsend-ai-review 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.

Review: #373

Head SHA: fb7ae7f
Timestamp: 2026-04-23T00:00:00Z
Outcome: approve

Summary

Clean, well-scoped CI change that adds paths: filters to the Build Site workflow so it only triggers when site-related files are modified. The four path globs (web/**, cloudflare_site/**, and the two workflow YAML files) correctly cover every input to the build artifact. The Deploy Site workflow chains via workflow_run on the Build Site workflow, so it is naturally skipped when the build does not run. No correctness, security, injection, or style findings across all six review dimensions.

Findings

No findings.

Footer

Outcome: approve
This review applies to SHA fb7ae7fcf8a1dd4629ec483c1d487783f0a38293. Any push to the PR head clears this review and requires a new evaluation.

@fullsend-ai-review fullsend-ai-review 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.

Review: #373

Head SHA: fb7ae7f
Timestamp: 2026-04-23T00:00:00Z
Outcome: approve

Summary

Clean CI optimization that adds paths: filters to the Build Site workflow so it only runs when site-related files change. The four filtered paths (web/**, cloudflare_site/**, and the two workflow YAML files) correctly cover every file consumed by the build job. The Deploy Site workflow chains via workflow_run on "Build Site", so skipping the build automatically skips the deploy — no changes needed there. No security, injection, or correctness concerns. YAML formatting follows existing conventions.

Findings

No findings.

Footer

Outcome: approve
This review applies to SHA fb7ae7fcf8a1dd4629ec483c1d487783f0a38293. Any push to the PR head clears this review and requires a new evaluation.

@fullsend-ai-review fullsend-ai-review 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.

Review: #373

Head SHA: fb7ae7f
Timestamp: 2026-04-23T00:00:00Z
Outcome: approve

Summary

Clean, well-scoped CI change that adds paths: filters to the Build Site workflow so it only triggers when site-related files (web/**, cloudflare_site/**, and the two workflow YAML files) are modified. The path set correctly covers all files referenced by the build step. The Deploy Site workflow chains via workflow_run, so it is automatically skipped when the build is skipped — verified against the deploy workflow source. No findings across any review dimension.

Findings

No findings.

Footer

Outcome: approve
This review applies to SHA fb7ae7fcf8a1dd4629ec483c1d487783f0a38293. Any push to the PR head clears this review and requires a new evaluation.

@fullsend-ai-review fullsend-ai-review 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.

Review: #373

Head SHA: fb7ae7f
Timestamp: 2026-04-23T00:00:00Z
Outcome: approve

Summary

Clean CI optimization that adds paths: filters to the Build Site workflow so it only triggers when site-related files are modified. The four path globs (web/**, cloudflare_site/**, and both workflow YAML files) comprehensively cover all site-related sources. The Deploy Site workflow chains via workflow_run on Build Site, so it is automatically skipped when the build doesn't run. No correctness, security, injection, or style concerns across any review dimension.

Findings

No findings.

Footer

Outcome: approve
This review applies to SHA fb7ae7fcf8a1dd4629ec483c1d487783f0a38293. Any push to the PR head clears this review and requires a new evaluation.

@fullsend-ai-review fullsend-ai-review 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.

Review: #373

Head SHA: fb7ae7f
Timestamp: 2026-04-23T17:36:50Z
Outcome: approve

Summary

Clean, correctly scoped CI change. The PR adds paths: filters to both the pull_request and push triggers in site-build.yml so the build only runs when site-related files are modified. The four path globs (web/**, cloudflare_site/**, .github/workflows/site-build.yml, .github/workflows/site-deploy.yml) cover all files that feed into the build artifact. The downstream Deploy Site workflow chains via workflow_run: [Build Site], so it is automatically skipped when the build doesn't trigger — this claim from the PR description is confirmed by inspecting site-deploy.yml. No findings across any of the six review dimensions.

Findings

No findings.

Footer

Outcome: approve
This review applies to SHA fb7ae7fcf8a1dd4629ec483c1d487783f0a38293. Any push to the PR head clears this review and requires a new evaluation.

@fullsend-ai-review fullsend-ai-review 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.

Review: #373

Head SHA: fb7ae7f
Timestamp: 2026-04-23T00:00:00Z
Outcome: approve

Summary

Clean, minimal CI change that adds paths: filters to both the pull_request and push triggers in site-build.yml. The four path patterns (web/**, cloudflare_site/**, and the two workflow files) exactly cover the files consumed by the build step. The downstream Deploy Site workflow chains via workflow_run: [completed], so it is automatically skipped when Build Site doesn't trigger — no changes needed there. No correctness, security, or injection concerns.

Findings

No findings.

Footer

Outcome: approve
This review applies to SHA fb7ae7fcf8a1dd4629ec483c1d487783f0a38293. Any push to the PR head clears this review and requires a new evaluation.

@fullsend-ai-review fullsend-ai-review 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.

Review: #373

Head SHA: fb7ae7f
Timestamp: 2026-04-23T00:00:00Z
Outcome: approve

Summary

Clean CI optimization that adds paths: filters to the Build Site workflow's pull_request and push triggers. The four filtered paths (web/**, cloudflare_site/**, and both workflow YAML files) precisely match the build job's actual inputs. The downstream Deploy Site workflow chains via workflow_run and is automatically skipped when the build does not run — no additional changes needed. No correctness, security, or style issues found.

Findings

None.

Footer

Outcome: approve
This review applies to SHA fb7ae7fcf8a1dd4629ec483c1d487783f0a38293. Any push to the PR head clears this review and requires a new evaluation.

@fullsend-ai-review fullsend-ai-review 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.

Review: #373

Head SHA: fb7ae7f
Timestamp: 2026-04-23T00:00:00Z
Outcome: approve

Summary

Clean, correctly scoped CI change that adds paths: filters to the Build Site workflow so it only runs when site-related files are modified. The four path globs (web/**, cloudflare_site/**, and both workflow YAML files) cover all inputs consumed by the build job. The downstream Deploy Site workflow chains via workflow_run, so it is automatically skipped when the build doesn't run — verified against site-deploy.yml. No security, correctness, or style concerns. No findings.

Findings

None.

Footer

Outcome: approve
This review applies to SHA fb7ae7fcf8a1dd4629ec483c1d487783f0a38293. Any push to the PR head clears this review and requires a new evaluation.

@fullsend-ai-review fullsend-ai-review 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.

Review: #373

Head SHA: fb7ae7f
Timestamp: 2026-04-23T00:00:00Z
Outcome: approve

Summary

Clean, correctly scoped CI optimization. The PR adds paths: filters to both the pull_request and push triggers in site-build.yml, restricting the Build Site workflow to runs where site-related files (web/**, cloudflare_site/**, or the two workflow YAMLs) are modified. The Deploy Site workflow chains via workflow_run on "Build Site", so it is automatically skipped when the build doesn't run — this claim was verified against the deploy workflow source. No security, correctness, or style issues found.

Findings

Info

  • [correctness] .github/workflows/site-build.yml — If new site-related directories or config files are added in the future (the build step comments mention a potential Vite app under web/), the paths: filter will need to be updated to include them. This is standard maintenance for path-filtered workflows and not a defect.

Footer

Outcome: approve
This review applies to SHA fb7ae7fcf8a1dd4629ec483c1d487783f0a38293. Any push to the PR head clears this review and requires a new evaluation.

@ralphbean

Copy link
Copy Markdown
Member Author

There's no package.json (or packages.json) in this repo — not on main or this branch. The build step is purely cp commands copying web/public/index.html and cloudflare_site/worker/ into the artifact bundle; there's no npm install or dependency resolution. The current paths filter covers all files the build actually touches.

If a package.json gets added later (e.g., when the Vite app mentioned in the build comments materializes), the filter should be updated at that point.

@ralphbean
ralphbean requested a review from ifireball April 28, 2026 16:09
@rh-hemartin

Copy link
Copy Markdown
Member

@ifireball could you comment on this?

@ifireball

ifireball commented May 10, 2026 •

Copy link
Copy Markdown
Member

@rh-hemartin

@ifireball could you comment on this?

@ralphbean

There's no package.json (or packages.json) in this repo — not on main or this branch. The build step is purely cp commands copying web/public/index.html and cloudflare_site/worker/ into the artifact bundle; there's no npm install or dependency resolution. The current paths filter covers all files the build actually touches.

If a package.json gets added later (e.g., when the Vite app mentioned in the build comments materializes), the filter should be updated at that point.

Looks like this was made quite a while ago before the introduction of any of the JS/Svelte code, I'd suggest re-prompting an agent to do this on top of a fresh clone. Please assign an issue to me if you want me to take care of this.

@ifireball ifireball left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

seems like this needs to be re-created rather then merely re-based.

@ralphbean

Copy link
Copy Markdown
Member Author

Closing in favor of #813 — this PR predates the JS/Svelte code and needs to be re-created from scratch against the current codebase. Assigned to @ifireball per their request.

This branch was successfully deployed

1 active deployment
site-preview — fb7ae7fc Deployed Apr 23, 2026 by github-actions[bot]
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.

3 participants