From 92e3d60c66c1ff258933988c96d2670e3664b033 Mon Sep 17 00:00:00 2001
From: Pol Alvarez <pol.avms@gmail.com>
Date: Wed, 12 Oct 2022 12:03:42 +0200
Subject: [PATCH 1/2] Update ci.yml

---
 nf_core/pipeline-template/.github/workflows/ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nf_core/pipeline-template/.github/workflows/ci.yml b/nf_core/pipeline-template/.github/workflows/ci.yml
index 64cc12a26d..f539fab335 100644
--- a/nf_core/pipeline-template/.github/workflows/ci.yml
+++ b/nf_core/pipeline-template/.github/workflows/ci.yml
@@ -11,6 +11,10 @@ on:
 env:
   NXF_ANSI_LOG: false
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     name: Run pipeline with test data

From 2c10142bd73972c867c420fbae159bea0367799d Mon Sep 17 00:00:00 2001
From: Pol Alvarez <pol.avms@gmail.com>
Date: Wed, 12 Oct 2022 12:58:56 +0200
Subject: [PATCH 2/2] Update nf_core/pipeline-template/.github/workflows/ci.yml
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
---
 nf_core/pipeline-template/.github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nf_core/pipeline-template/.github/workflows/ci.yml b/nf_core/pipeline-template/.github/workflows/ci.yml
index f539fab335..67e50b44c4 100644
--- a/nf_core/pipeline-template/.github/workflows/ci.yml
+++ b/nf_core/pipeline-template/.github/workflows/ci.yml
@@ -12,7 +12,7 @@ env:
   NXF_ANSI_LOG: false
 
 concurrency: 
-  group: ${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
   cancel-in-progress: true
 
 jobs: