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 GHA functionality to cancel jobs when changes are pushed #2634

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

mrmundt
Copy link
Contributor

@mrmundt mrmundt commented Nov 28, 2022

Fixes NA

Summary/Motivation:

We frequently have to manually cancel jobs on PRs when new changes are pushed mid-run. This adds an automatic-cancel feature so only one set of jobs can run per PR.

Changes proposed in this PR:

  • Add trigger to cancel jobs when new changes are pushed

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@mrmundt
Copy link
Contributor Author

mrmundt commented Nov 28, 2022

Proof of concept: https://github.com/Pyomo/pyomo/actions/runs/3568411401 <- Auto-cancelled when I merged main

@jsiirola jsiirola merged commit 97461de into Pyomo:main Nov 29, 2022
@mrmundt mrmundt deleted the cancel-concurrent branch January 31, 2023 15:30
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.

3 participants