One minute
Avoid Multiple CI Executions When Having Multiple Commits in GitHub Actions
In GitHub Actions when you push several commits might happen that doesn’t make any sense to finish the previous CI executions.
To improve resources usage there is an easy way of cancel previous jobs automatically adding the follow lines to your CI setup:
on:
...
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
...