Restrict build when triggered from a github action

I’ve been a lazy in a recent project and didn’t want to have to manually maintain the building of my code documentation. I implemented a github action on my repo that builds my doc for me and commits the new doc on the the branch or PR it was triggered from.
This creates a situation where each push on a PR triggers the same netlify build twice.
Note that this action is configured in such a way that it’s not allowed to trigger actions itself.

I would like to limit netlify (somehow?) to only build the site when it comes from a real user (an not from an automated action). Is that possible? In terms of billing and machine usage it’d be really helpful if I could configure my project correctly.

Best regards,

You can setup the action to trigger a build hook probably: Build hooks | Netlify Docs and disable building from the the normal pushes.

1 Like