Excluding certain folder from github webhook

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:

You can use Skip a build feature.

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

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

2 Likes

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

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

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/

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