zio / zio-sbt

SBT Plugins For ZIO Projects
https://zio.dev/zio-sbt
Apache License 2.0
12 stars 11 forks source link

Prevent concurrent builds on branches #406

Closed erikvanoosten closed 3 months ago

erikvanoosten commented 3 months ago

Prevent multiple builds at the same time from the same branch by cancelling the earlier builds. The default branch (e.g. master) is exempted, that is, builds from the default branch may run concurrently.

erikvanoosten commented 3 months ago

I didn't see any need to make this addition optional or configurable. Therefore, I chose the simplest solution which is to hard code the additions in the workflow model. Please let me know if this should be improved upon.