Skip to content

Commit d536645

Browse files
committed
Method 4
1 parent c4a0754 commit d536645

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/run-crt-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ permissions:
99
contents: read
1010

1111
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: ${{ !contains(github.ref, 'master') && !contains(github.ref, 'concurrency-test-1') }}
12+
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/concurrency-test-1') && github.run_id || github.ref }}
13+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/concurrency-test-1' }}
1414

1515
jobs:
1616
build:

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ permissions:
99
contents: read
1010

1111
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: ${{ !contains(github.ref, 'master') && !contains(github.ref, 'concurrency-test-1') }}
12+
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/concurrency-test-1') && github.run_id || github.ref }}
13+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/concurrency-test-1' }}
1414

1515
jobs:
1616
build:

0 commit comments

Comments
 (0)