Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.4k
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 ourterms of service andprivacy 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
netlifybot commentedDec 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 forpython-cpython-preview ready!
To edit notification comments on pull requests, go to yourNetlify site settings. |
hugovk commentedDec 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 commentedDec 7, 2022
Hm, maybe like this? |
hugovk commentedDec 7, 2022
Added that to my fork's Rebased the two PRs but both had Netlify builds. |
sobolevn commentedDec 7, 2022
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 00» git diff --name-only| grep -q'^Doc/'&&echo 1||echo 01 Do you agree? |
hugovk commentedDec 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 commentedDec 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 commentedDec 7, 2022
Thankyou for testing and finding a solution ;) |
Uh oh!
There was an error while loading.Please reload this page.
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