Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Do not cancel build-and-test workflows on main (#16616)
According to github documentation here: https://docs.github.com/en/enterprise-cloud@latest/actions/using-jobs/using-concurrency#example-using-a-fallback-value, "The following concurrency group cancels in-progress jobs or runs on pull_request events only; if github.head_ref is undefined, the concurrency group will fallback to the run ID, which is guaranteed to be both unique and defined for the run." Effectively, workflows with this configuration will be cancelled when changes are pushed to a PR, but not when a PR is merged to main. I've applied this change to two specific workflows: - build-and-test: Because this is the workflow that populates the repo's status badge. When this workflow is canceled, the badge shows a failure. - build-and-test-windows: A recent decision was made to run this only on main. We should ensure that it actually does run on main for each PR.
- Loading branch information