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

Cancel workflows of outdated commits #556

Merged
merged 2 commits into from
Oct 30, 2020
Merged

Conversation

lgeiger
Copy link
Member

@lgeiger lgeiger commented Oct 29, 2020

This PR adds a GitHub action that will cancel outdated workflows. E.g. when pushing a sceond commit to a PR, the workflow for the first commit should be canceled to save CI time.

@lgeiger lgeiger added the internal-improvement Internal Improvements and Maintenance label Oct 29, 2020
@lgeiger lgeiger requested a review from a team October 29, 2020 18:35
Comment on lines 61 to +62
steps:
- name: Cancel Outdated Runs
Copy link
Member Author

Choose a reason for hiding this comment

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

I added this as a normal step to one of the CI jobs, however we could also run this on a dedicated job (however then it would showup in the PR checks summary).

@lgeiger lgeiger merged commit a29856a into master Oct 30, 2020
@lgeiger lgeiger deleted the cancel-outdated-workflows branch October 30, 2020 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal-improvement Internal Improvements and Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants