dev: cancel running pull request jobs on new push #4339
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
What this PR does / why we need it:
With some of our jobs running for quite some time, it makes sense to cancel running jobs on a new push to free up resources. This will cancel all running jobs on a pull request if a new push is made to it.
I also moved CodeQL and end-to-end tests to be called by the pull-request workflow instead of spawning on their own for pull requests.
Which issue(s) this PR fixes:
None