From d77e613f807a0107cb1f7b7e8df6c1332c61c892 Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Sun, 29 Sep 2024 21:54:40 -0300 Subject: [PATCH] cancel-in-progress if 2 actions are being created to go to MAIN, the oldest one will be canceled --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f84ac330..b06a9c2d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,10 @@ on: pull_request: branches: [ "*" ] +concurrency: + group: ci-${{ github.event_name }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'push' }} + env: BUILD_TYPE: Release