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

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

Merged
merged 1 commit into from
Feb 23, 2022

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