Skip to content

Commit 673755b

Browse files
authored
Only cancel CI runs in PRs and not in main/release branches (colmap#3063)
1 parent d57639e commit 673755b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/build-mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: COLMAP (Mac)
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5-
cancel-in-progress: true
5+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
66

77
on:
88
push:

.github/workflows/build-pycolmap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: PyCOLMAP
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5-
cancel-in-progress: true
5+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
66

77
on:
88
push:

.github/workflows/build-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: COLMAP (Ubuntu)
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5-
cancel-in-progress: true
5+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
66

77
on:
88
push:

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: COLMAP (Windows)
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5-
cancel-in-progress: true
5+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
66

77
on:
88
push:

0 commit comments

Comments
 (0)