From 98ea06e82deea35f33ab63c0539355d0120d597b Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Tue, 1 Oct 2024 01:54:36 -0300 Subject: [PATCH] cancel-in-progress (#1162) 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