Prevent cancellation of CI in master (#23246)

```release-note
NONE
```
This commit is contained in:
Agniva De Sarker
2023-05-03 23:44:00 +05:30
committed by GitHub
parent 2e852c06a8
commit 44920deab6
5 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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:

View File

@@ -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

View File

@@ -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