From 3234d73bc2a3be68fe2e0c708cdec4078c7fce24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20Mu=CC=88nnich?= Date: Tue, 7 May 2024 17:23:51 +0200 Subject: [PATCH] Automatically cancel previous CI runs of the same git ref --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27609ff..573c5b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,11 @@ name: CI on: [push] +# Automatically cancel previous runs for the same ref (i.e. branch) +concurrency: + group: ${{ github.ref }}-${{ github.event_name }} + cancel-in-progress: true + jobs: lint: runs-on: ubuntu-latest