From 30dee6e4faa992c050d91814c1376fbbb8772fc9 Mon Sep 17 00:00:00 2001 From: Chayim Date: Wed, 27 Sep 2023 13:51:06 +0300 Subject: [PATCH] Disabling multiple runs of a PR based on commit (#189) --- .github/workflows/doctests.yml | 6 +++++- .github/workflows/integration.yml | 4 ++++ .github/workflows/spellcheck.yml | 6 ++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/doctests.yml b/.github/workflows/doctests.yml index 1225b246..b170bedf 100644 --- a/.github/workflows/doctests.yml +++ b/.github/workflows/doctests.yml @@ -9,6 +9,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: doctests: runs-on: ubuntu-latest @@ -28,7 +32,7 @@ jobs: - name: .NET Core 7 uses: actions/setup-dotnet@v2 with: - dotnet-version: '7.0.x' + dotnet-version: '7.0.x' - name: run tests working-directory: tests/Doc run: | diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index c715948c..49dc7019 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -11,6 +11,10 @@ on: schedule: - cron: "0 1 * * *" +concurrency: + group: ${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: dotnet_6_cluster: name: .NET 6 on [redis-stack cluster] diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 00c5437d..f9b1b688 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -1,6 +1,12 @@ name: spellcheck + on: pull_request: + +concurrency: + group: ${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: check-spelling: runs-on: ubuntu-latest