From 44920deab62b7b3d632efbe4722c227b6f9f37fd Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 3 May 2023 23:44:00 +0530 Subject: [PATCH] Prevent cancellation of CI in master (#23246) ```release-note NONE ``` --- .github/workflows/channels-ci.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/e2e-tests-ci.yml | 2 +- .github/workflows/scorecards-analysis.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/channels-ci.yml b/.github/workflows/channels-ci.yml index 7d71862ba7..f89ee722a9 100644 --- a/.github/workflows/channels-ci.yml +++ b/.github/workflows/channels-ci.yml @@ -7,7 +7,7 @@ on: - mono-repo* concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !contains( github.ref , 'heads/ref/master') }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} defaults: run: shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbf50ad3ed..8197f9a20f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ env: go-version: "1.19.5" concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !contains( github.ref , 'heads/ref/master') }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} jobs: check-mocks: name: Check mocks diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a554f95b31..597302f900 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -2,7 +2,7 @@ name: "CodeQL" concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !contains( github.ref , 'heads/ref/master') }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} on: pull_request: diff --git a/.github/workflows/e2e-tests-ci.yml b/.github/workflows/e2e-tests-ci.yml index d620d69555..89c7cbfeed 100644 --- a/.github/workflows/e2e-tests-ci.yml +++ b/.github/workflows/e2e-tests-ci.yml @@ -7,7 +7,7 @@ on: - mono-repo* concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !contains( github.ref , 'heads/ref/master') }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} defaults: run: shell: bash diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 01522a547c..685c9a4ebf 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -7,7 +7,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !contains( github.ref , 'heads/ref/master') }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} # Declare default permissions as read only. permissions: read-all