From 7f50da9c8b4b97e07e91575b4a45f3f598236261 Mon Sep 17 00:00:00 2001
From: viktorxda <35473052+viktorxda@users.noreply.github.com>
Date: Mon, 8 May 2023 14:19:19 +0200
Subject: [PATCH] [no ci] cancel previous workflow if pr is updated (#774)

Co-authored-by: Viktor <viktorxda@users.noreply.github.com>
---
 .github/workflows/matrix_build.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/matrix_build.yml b/.github/workflows/matrix_build.yml
index f930ea21..1aba0705 100644
--- a/.github/workflows/matrix_build.yml
+++ b/.github/workflows/matrix_build.yml
@@ -17,6 +17,10 @@ on:
        - '**.md'
   workflow_dispatch:
 
+concurrency:
+  group: ${{ github.head_ref }}
+  cancel-in-progress: true
+
 env:
   MAX_KERNEL_SIZE: 0x200000
   MAX_ROOTFS_SIZE: 0x500000