No stages to run = skip build?

I ran into an edge case today while working on a project that uses Drone.

If the entire pipeline is skipped because all conditions are false, drone still runs the build, only executing the clone stage, and then completes. It probably makes more sense for drone to skip the build entirely.

I was going to make a pull request to solve this issue, but the template advised me to post this here, first.

+1 would be very handy

When 0.10 is released the build object will be created and stored in the database before the yaml is evaluated, so unfortunately we are moving in a direction where this would not be possible. This is in preparation for the introduction of the .drone.js file [1]. With that being said, we are introducing a new concept called triggers [1] which I believe can be used to eliminate this scenario.

[1] see https://discourse.drone.io/t/roadmap-for-the-1-0-release