StackStorm / st2ci

New and improved continuous integration actions and workflows
Apache License 2.0
3 stars 9 forks source link

[WIP] Automatically cancel old PR end to end builds when a new one is triggered #148

Open Kami opened 5 years ago

Kami commented 5 years ago

This pull request updates st2_pkg_e2e_test.meta action / workflow to cancel any existing old builds for a particular PR before starting a new one.

This is similar to Travis and Circle CI behavior of auto canceling of old builds when a new build is triggered by pushing changes to a branch. This allows us to speed things up and save resources and utilization on CICD.

To logic to determine old builds is simple - we check Circle CI build number and if that one is < current build number, then we mark that build as old and cancel it.

TODO

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.