Cancel old jobs in GitHub actions

The concurrency keyword ensures there is only one job running on the specified group. If there are older jobs running in the same group, you could cancel old jobs to save runner resources.

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

Comments