From 64d692aec242e2559b9ca8f2078d026208e6f3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 29 Feb 2024 17:21:25 +0100 Subject: [PATCH] MOBILE-4497 github: Add concurrency to cancel previous ongoing pushes --- .github/workflows/acceptance.yml | 5 +++++ .github/workflows/testing.yml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index f63cd5edb..a2d2e1330 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -16,6 +16,11 @@ on: pull_request: branches: [ main, v*.x ] +concurrency: + group: acceptance-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + + jobs: build: diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index ff5e04e2a..2bd657f1e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -2,6 +2,10 @@ name: Testing on: [push, pull_request] +concurrency: + group: testing-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: test: