I have a use case where on every commit on a branch it automatically trigger the deployment pipeline as well.
We have use case where automatic deployment trigger happen only on n commits on a branch and after that there will be a manual block step.
Wonder, if I can write a conditional block step like this? I already have a script which determine if current commit on branch is within nth commit or not.
This is Suma from Buildkite support team. Thank you for reaching out to us with your question.
One way to achieve this is to have a script which does the check for the commits which is something you already have and then based on the result of the check dynamically upload a pipeline with block step or trigger step to deployment pipeline.