From 800069fc2d94095b7071b4370196ea4a3101be33 Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Wed, 14 Feb 2024 10:09:26 -0800 Subject: [PATCH 1/2] test cancelling the backport pr workflow if it is already in progress for a specific pr Signed-off-by: Callum Styan --- .github/workflows/backport.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 820d2758307ef..e375e27450cd7 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -4,7 +4,9 @@ on: types: - closed - labeled - +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: main: runs-on: ubuntu-latest From 36e5834381a38241005aaf4265565a67893b2996 Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Wed, 14 Feb 2024 10:32:54 -0800 Subject: [PATCH 2/2] change how we look for the pr identifier Signed-off-by: Callum Styan --- .github/workflows/backport.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index e375e27450cd7..d9995cf947253 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -5,7 +5,7 @@ on: - closed - labeled concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.event.issue.number }} cancel-in-progress: true jobs: main: