From 7931cbacb15c8e3e552f352d5075397eeb44f2dd Mon Sep 17 00:00:00 2001 From: Fraser Molyneux Date: Thu, 9 Nov 2023 20:19:45 +0000 Subject: [PATCH] Adding concurrency to workflows --- .github/workflows/pull-request-validation.yml | 3 +++ .github/workflows/release-to-production.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/pull-request-validation.yml b/.github/workflows/pull-request-validation.yml index 6b8bde5e..f03fb33d 100644 --- a/.github/workflows/pull-request-validation.yml +++ b/.github/workflows/pull-request-validation.yml @@ -12,6 +12,9 @@ permissions: actions: read # Required by CodeQL security-events: write # Required by CodeQL +concurrency: # This is required to prevent multiple runs of the same workflow from running at the same time. + group: ${{ github.workflow }} + jobs: dependency-review: runs-on: ubuntu-latest diff --git a/.github/workflows/release-to-production.yml b/.github/workflows/release-to-production.yml index 2d0bf001..83728685 100644 --- a/.github/workflows/release-to-production.yml +++ b/.github/workflows/release-to-production.yml @@ -14,6 +14,9 @@ permissions: actions: read # Required by CodeQL security-events: write # Required by CodeQL +concurrency: # This is required to prevent multiple runs of the same workflow from running at the same time. + group: ${{ github.workflow }} + jobs: dotnet-web-ci: runs-on: ubuntu-latest