Using jobs.<job_id>.concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.
This means that after updating a given branch, the on-going build will be cancelled ensuring the available runners are used to build the latest version.
Using
jobs.<job_id>.concurrency
ensures that only a single job or workflow using the same concurrency group will run at a time.This means that after updating a given branch, the on-going build will be cancelled ensuring the available runners are used to build the latest version.
See https://docs.github.com/en/actions/using-jobs/using-concurrency
Adapted from scikit-build/scikit-build@f0db9f31f (ci: cancel in-progress on repeated pushes)