Skip to content

Commit a1d78a1

Browse files
committed
Cancel CI build if new one is triggered
1 parent e299e17 commit a1d78a1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/run_tests.yml

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
pull_request:
77
branches: [ master, develop ]
88

9+
# Cancel job when new commit is pushed for the same build
10+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
11+
# https://github.com/OSGeo/gdal/pull/5460
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
14+
cancel-in-progress: true
15+
916
jobs:
1017
build:
1118
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)