Trying to set up a conditional build in the drone.yml, here how it looks:
feature-dev-deployment:
when:
event: push
branches:
include: feature/*
exclude: master
The above code triggers for every build irrespective of branch name and also for master.
I want to trigger the build on branches only if it has the prefix 'feature' (like: 'feature/test/abc-123/desc') and it should not trigger the build for other patterns and master. As per the drone 0.5 documentation limit steps by branch, I assume i'm following right syntax.