-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-100072: only trigger netlify builds for doc changes #100074
Conversation
✅ Deploy Preview for python-cpython-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Thanks! Looks like it needs a bit of tuning. I added this to my fork's Then created two PRs inside my fork, one with a But Netlify built both. |
Hm, maybe like this? |
Added that to my fork's Rebased the two PRs but both had Netlify builds. |
This command should work: git diff --name-only | grep -q '^Doc/' && exit 1 || exit 0
Prep: echo 'a' >> Doc/glossary.rst Local tests (I use » git diff --name-only | grep -q '^Lib/' && echo 1 || echo 0
0
» git diff --name-only | grep -q '^Doc/' && echo 1 || echo 0
1 Do you agree? |
With local testing, yes. With Netlify, no... hugovk@abbc30d shows "Deploy Preview canceled." for both PRs... hugovk#34 with no docs change:
hugovk#35 with docs change:
Rewinding and looking at the logs for #100074 (comment): hugovk#34 without docs change:
hugovk#35 with docs change:
So we've already set
So let's try I also cleared the deploy caches, in case the rebase/force pushes hugovk#34 without docs change - no Netlify build! ✅:
hugovk#35 with docs change - has Netlify build! ✅:
So let's try this! |
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Thanks, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, let's give this a shot!
Thank you for testing and finding a solution ;) |
This PR will trigger the netlify build because of
netlify.toml
change, but hopefully it won't trigger changes anymore for other builds without./Doc
or./Misc
changes.Open question: do we need
./Misc
here? AllNEWS
go there, many PRs have it. But, I don't think we are really interested in rendering news. Opinions?CC @Mariatta @hugovk @epicfaace