Scope Netlify deploy previews to license-exceptions folder via GitHub Actions#1369
Draft
Scope Netlify deploy previews to license-exceptions folder via GitHub Actions#1369
Conversation
✅ Deploy Preview for cncf-license-exceptions canceled.
|
…date netlify.toml Agent-Logs-Url: https://github.com/cncf/foundation/sessions/44d36a25-9290-4ed2-a8b3-3605438d0ece Co-authored-by: krook <1499840+krook@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Scope Netlify action for license exceptions site to license-exceptions folder
Scope Netlify deploy previews to license-exceptions folder via GitHub Actions
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Netlify was triggering deploy previews on every PR regardless of what changed. The previous fix (
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- ."innetlify.toml) was unreliable — it cancelled builds after they started rather than preventing them.Changes
.github/workflows/netlify-preview.yml— New workflow scoped tolicense-exceptions/**changes viapull_request: pathsfiltering. Builds and deploys a Netlify preview usingnpx netlify-cliwithNETLIFY_SITE_ID/NETLIFY_AUTH_TOKENsecrets, then posts the preview URL as a PR comment. User-controlled inputs (PR title/number) are passed via env vars to avoid shell injection.netlify.toml— Removes the unreliablegit diffignore from[build]. Adds[context.deploy-preview] ignore = "exit 0"to unconditionally skip Netlify GitHub App PR builds — preview deployments are now owned entirely by the GitHub Actions workflow above.