Excluding certain folder from github webhook


#1

Hello,

I don’t want my builds to run (clog up the queue) when I do a simple push of a markdown into a docs folder.

This is easy enough to do by enabling selective builds and picking in the folders I want to it run for; but that leaves me with the problem of Github waiting for a build result back for that particular PR (which will never be built on Bitrise).

So; I wan’t to be able to merge PR’s into master to a certain directory without triggering a build on Bitrise but still not be blocked off by Github demanding a successful build from Bitrise on PR’s.

Is there a way for Bitrise to report successfully back without building using selective builds?

Should I add a workflow step with a script that checks what was being changed (using some kind of diff?) and have that skip the rest of the steps?

Any other clever solutions? :grin:


Add support for BitBucket to the Selective Builds feature
#2

You can use Skip a build feature.


#3

Yes, that still gives me the same problem of no status being reported back to github, so merging is still blocked.


#4

Sorry, I misunderstood the full question.
It is possible to achieve effect like you said:

You can creare such step, export appropriate environment variable with envman and add run_if to rest of the steps.

Here is relevant documentation: https://github.com/bitrise-io/devcenter/blob/master/_articles/tips-and-tricks/disable-a-step-by-condition.md


#5

Thanks for helping out here as per usual @koral! :slightly_smiling_face:


#6

Of course! That’s a great, simple suggestion, thanks @koral, will try it out.


#7

Hi @ragnaradolf

Did you get a chance to try out @koral’s suggestion?

You can also find the docs in our devcenter at: https://devcenter.bitrise.io/tips-and-tricks/disable-a-step-by-condition/


#8

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.