diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cd011830fb6affbc861a87e576fb0d922a6bcc32..28923da79b5d2a8812221bf9f81d3ca54d452aea 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,6 +7,10 @@ on:
     schedule:
         - cron:  '17 3 * * 0'
 
+concurrency:
+    group: ${{ github.head_ref || github.ref_name }}
+    cancel-in-progress: true
+
 jobs:
     typos:
         name: Typos