Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-100072: only trigger netlify builds for doc changes#100074
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
sobolevn commented Dec 7, 2022 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading. Please reload this page.
netlifybot commented Dec 7, 2022 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
✅ Deploy Preview for python-cpython-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
hugovk commented Dec 7, 2022
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. |
sobolevn commented Dec 7, 2022
Hm, maybe like this? |
hugovk commented Dec 7, 2022
Added that to my fork's Rebased the two PRs but both had Netlify builds. |
sobolevn commented Dec 7, 2022
This command should work: git diff --name-only | grep -q '^Doc/'&&exit 1 ||exit 0
Prep: echo'a'>> Doc/glossary.rstLocal 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 1Do you agree? |
hugovk commented Dec 7, 2022
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! |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
sobolevn commented Dec 7, 2022
Thanks, |
hugovk left a comment
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!
sobolevn commented Dec 7, 2022
Thank you for testing and finding a solution ;) |
This PR will trigger the netlify build because of
netlify.tomlchange, but hopefully it won't trigger changes anymore for other builds without./Docor./Miscchanges.Open question: do we need
./Mischere? AllNEWSgo there, many PRs have it. But, I don't think we are really interested in rendering news. Opinions?CC @Mariatta@hugovk@epicfaace