easystats / workflows

GitHub Actions for {easystats} packages
https://indrajeetpatil.github.io/preventive-r-package-care
Creative Commons Zero v1.0 Universal
7 stars 1 forks source link

Cancel previous workflows when there's a new commit #28

Closed etiennebacher closed 1 year ago

etiennebacher commented 1 year ago

I often push commits one by one in PRs and if I forget to add [skip ci] then I have to wait a long time to get the results of GHA for the latest commit. I think it's possible to use concurrency to cancel the previous workflow with the same name when there's a new commit triggering this workflow.

Is it something that would make sense?

IndrajeetPatil commented 1 year ago

I had been meaning to do this. Thanks for providing the impetus!

Let's see if it works as expected.

IndrajeetPatil commented 1 year ago

The only annoying thing now is the horde of emails one gets for all cancelled workflows.

etiennebacher commented 1 year ago

Yes, it's discussed here but I don't think there's a solution for now.