From a2252c92367065559bd9bbbbb4db45ee692031d0 Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Tue, 9 Aug 2022 11:49:48 +0000 Subject: [PATCH] ci: ensure unique group ID to prevent workflows from getting cancelled (#31806) ci: ensure unique group ID to prevent workflows from cancelling --- .github/workflows/patch.yml | 2 +- .github/workflows/server-tests-mariadb.yml | 2 +- .github/workflows/server-tests-postgres.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml index 4d2dc58677..9e06254bac 100644 --- a/.github/workflows/patch.yml +++ b/.github/workflows/patch.yml @@ -11,7 +11,7 @@ on: workflow_dispatch: concurrency: - group: patch-develop-${{ github.event.number }} + group: patch-develop-${{ github.event_name }}-${{ github.event.number || github.event_name == 'workflow_dispatch' && github.run_id || '' }} cancel-in-progress: true jobs: diff --git a/.github/workflows/server-tests-mariadb.yml b/.github/workflows/server-tests-mariadb.yml index 64134bc539..e3b92fd269 100644 --- a/.github/workflows/server-tests-mariadb.yml +++ b/.github/workflows/server-tests-mariadb.yml @@ -27,7 +27,7 @@ on: type: string concurrency: - group: server-mariadb-develop-${{ github.event.number }} + group: server-mariadb-develop-${{ github.event_name }}-${{ github.event.number || github.event_name == 'workflow_dispatch' && github.run_id || '' }} cancel-in-progress: true jobs: diff --git a/.github/workflows/server-tests-postgres.yml b/.github/workflows/server-tests-postgres.yml index 651c935c15..df43801478 100644 --- a/.github/workflows/server-tests-postgres.yml +++ b/.github/workflows/server-tests-postgres.yml @@ -9,7 +9,7 @@ on: types: [opened, labelled, synchronize, reopened] concurrency: - group: server-postgres-develop-${{ github.event.number }} + group: server-postgres-develop-${{ github.event_name }}-${{ github.event.number || github.event_name == 'workflow_dispatch' && github.run_id || '' }} cancel-in-progress: true jobs: