Skip to content

Chore: Adds cancel-in-progress on consecutive push#101

Merged
guacamole merged 1 commit intomasterfrom
github-actions-resource-waste-fix
Feb 23, 2022
Merged

Chore: Adds cancel-in-progress on consecutive push#101
guacamole merged 1 commit intomasterfrom
github-actions-resource-waste-fix

Conversation

@jay-dee7
Copy link
Member

@jay-dee7 jay-dee7 commented Feb 22, 2022

Adds Workflow groups and cancels any older action runs when we push consecutively.

This is how it works:

  1. Make a change, push and raise a PR, as of now, we run 10 Github Actions.
  2. See a typo, or a fix, commit and push before the previous action has passed
  3. Now there are 2 simultaneous Github Actions running, out of which, only the newer one matters.
  4. This PR cancels the older action that is (are) running and only keeps the latest iteration of it.

@jay-dee7 jay-dee7 added Chore For work that isn't directly related to the product CI Work related to CI/Github Actions labels Feb 22, 2022
@jay-dee7 jay-dee7 requested a review from guacamole February 22, 2022 13:33
@jay-dee7 jay-dee7 self-assigned this Feb 22, 2022
@jay-dee7 jay-dee7 force-pushed the github-actions-resource-waste-fix branch from 13f68e0 to cae8ee3 Compare February 22, 2022 13:59
Copy link
Member

@guacamole guacamole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@guacamole guacamole merged commit 2e49b23 into master Feb 23, 2022
@guacamole guacamole deleted the github-actions-resource-waste-fix branch February 23, 2022 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Chore For work that isn't directly related to the product CI Work related to CI/Github Actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants