Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Add in-progress cancellation to CI workflows #76

Merged
merged 1 commit into from
Sep 7, 2022

Conversation

burgholzer
Copy link
Member

Per default, GitHub keeps workflows running even if new commits are added to a pull request.
This is wasteful and requires lots of manual cancellations to free up available runners.
This PR adds the corresponding settings to cancel in-progress jobs whenever new commits become available by adding

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

snippets to all the workflow files.

Signed-off-by: burgholzer <burgholzer@me.com>
@burgholzer burgholzer added continuous integration Anything related to the CI setup usability Anything related to usability labels Sep 7, 2022
@burgholzer burgholzer self-assigned this Sep 7, 2022
@burgholzer burgholzer enabled auto-merge (squash) September 7, 2022 14:12
@codecov
Copy link

codecov bot commented Sep 7, 2022

Codecov Report

Merging #76 (66e3cc1) into main (ae0d1e6) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main     #76   +/-   ##
=====================================
  Coverage   91.2%   91.2%           
=====================================
  Files         29      29           
  Lines       1825    1825           
=====================================
  Hits        1666    1666           
  Misses       159     159           

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

@burgholzer burgholzer merged commit 58ee277 into main Sep 7, 2022
@burgholzer burgholzer deleted the in-progress-cancellation branch September 7, 2022 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
continuous integration Anything related to the CI setup usability Anything related to usability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant