Skip to content

Conversation

@davidanthoff
Copy link
Collaborator

If this works the way I think it works (and I've tested it a bit on another repo) then this would mean that if one pushes a new commit to a PR or branch that triggers a workflow run, any previous still running instance of the same workflow for that same PR or branch would be cancelled.

Should overall speed things up because one should run less often into resource constraints.

@codecov
Copy link

codecov bot commented Aug 8, 2022

Codecov Report

Merging #712 (b397489) into master (e7d8b2d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #712   +/-   ##
=======================================
  Coverage   93.93%   93.93%           
=======================================
  Files           2        2           
  Lines         495      495           
=======================================
  Hits          465      465           
  Misses         30       30           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@KristofferC
Copy link
Member

KristofferC commented Aug 9, 2022

Sounds good. Let's try it.

@KristofferC KristofferC merged commit 43e0325 into master Aug 9, 2022
@KristofferC KristofferC deleted the cancel-obsolete-github-workflow-runs branch August 9, 2022 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants