Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 473 Bytes

20220515_cancel_check_runs.md

File metadata and controls

14 lines (10 loc) · 473 Bytes

Cancel previous PR/branch runs when a new commit is pushed

GitHub Actions allows canceling check runs when a new commit is pushed. This avoid wasting time on outdated commits and yields quicker results on the current one.

To make use of this, edit your .github/workflows/test-and-release.yml file as follows:

+ # Cancel previous PR/branch runs when a new commit is pushed
+ concurrency:
+   group: ${{ github.ref }}
+   cancel-in-progress: true

  jobs: