# Excluding certain folder from github webhook

**URL:** <https://discuss.bitrise.io/t/excluding-certain-folder-from-github-webhook/6586>\
**Category:** Question & Answer\
**Created:** [October 25, 2018, 8:38am UTC](https://discuss.bitrise.io/t/excluding-certain-folder-from-github-webhook/6586 "2018-10-25T08:38:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ragnaradolf](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@ragnaradolf](https://discuss.bitrise.io/u/ragnaradolf)\
**Post date:** [October 25, 2018, 8:38am UTC](https://discuss.bitrise.io/t/excluding-certain-folder-from-github-webhook/6586/1 "2018-10-25T08:38:52Z")

</div>

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? 😁

---

<div class="post-metadata">

**Author:** ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)\
**Post date:** [October 25, 2018, 10:48am UTC](https://discuss.bitrise.io/t/excluding-certain-folder-from-github-webhook/6586/2 "2018-10-25T10:48:41Z")

</div>

You can use [Skip a build](https://devcenter.bitrise.io/tips-and-tricks/skip-a-build/) feature.

---

<div class="post-metadata">

**Author:** ![ragnaradolf](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@ragnaradolf](https://discuss.bitrise.io/u/ragnaradolf)\
**Post date:** [October 25, 2018, 12:05pm UTC](https://discuss.bitrise.io/t/excluding-certain-folder-from-github-webhook/6586/3 "2018-10-25T12:05:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)\
**Post date:** [October 25, 2018, 2:06pm UTC](https://discuss.bitrise.io/t/excluding-certain-folder-from-github-webhook/6586/4 "2018-10-25T14:06:38Z")

</div>

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

> [@ragnaradolf](#):
>
> 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?

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](https://github.com/bitrise-io/devcenter/blob/master/_articles/tips-and-tricks/disable-a-step-by-condition.md)

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [October 25, 2018, 2:19pm UTC](https://discuss.bitrise.io/t/excluding-certain-folder-from-github-webhook/6586/5 "2018-10-25T14:19:37Z")

</div>

Thanks for helping out here as per usual @koral! 🙂

---

<div class="post-metadata">

**Author:** ![ragnaradolf](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@ragnaradolf](https://discuss.bitrise.io/u/ragnaradolf)\
**Post date:** [October 25, 2018, 2:31pm UTC](https://discuss.bitrise.io/t/excluding-certain-folder-from-github-webhook/6586/6 "2018-10-25T14:31:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bitrise-adam](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitrise-adam/32/1805_2.png) [@bitrise-adam](https://discuss.bitrise.io/u/bitrise-adam)\
**Post date:** [November 5, 2018, 7:31am UTC](https://discuss.bitrise.io/t/excluding-certain-folder-from-github-webhook/6586/7 "2018-11-05T07:31:53Z")

</div>

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/](https://devcenter.bitrise.io/tips-and-tricks/disable-a-step-by-condition/)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [December 5, 2018, 7:31am UTC](https://discuss.bitrise.io/t/excluding-certain-folder-from-github-webhook/6586/8 "2018-12-05T07:31:55Z")

</div>

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