Skip to content

Commit 8b3f87e

Browse files
authored
Fix ci concurrency (#320)
1 parent b559d67 commit 8b3f87e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/integration-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ on: [push, pull_request]
66
permissions: read-all
77

88
concurrency:
9-
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
10-
cancel-in-progress: true
9+
# On master/release, we don't want any jobs cancelled
10+
# On PR branches, we cancel the job if new commits are pushed
11+
# More info: https://stackoverflow.com/a/70972844/1261287
12+
group: ${{ github.ref }}
13+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
1114

1215
jobs:
1316
build:

0 commit comments

Comments
 (0)