From 2e9ba5a60cbea42fe3e729eee47c68b83956444e Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 26 Jan 2023 10:15:54 +0100 Subject: [PATCH] Cancel running process if new commit is pushed --- .github/workflows/ResInsightWithCache.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ResInsightWithCache.yml b/.github/workflows/ResInsightWithCache.yml index 820f550546..fbe901c4e7 100644 --- a/.github/workflows/ResInsightWithCache.yml +++ b/.github/workflows/ResInsightWithCache.yml @@ -13,6 +13,10 @@ env: BUILDCACHE_DIR: ${{ github.workspace }}/buildcache_dir BUILDCACHE_ACCURACY: SLOPPY +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: ResInsight-x64-buildcache: runs-on: ${{ matrix.config.os }}