From 59e7b3177832f90c0abe941690c1851d93dbeb9f Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Mon, 4 Jul 2022 21:18:31 +0300 Subject: [PATCH] Add concurency setting to CI workflow This change will prompt the CI workflow to cancel a currently running job, if a new push is sent in a PR. This should prevent duplicate jobs running for the same PR simultaneously. Signed-off-by: Gabriel Adrian Samfira --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a850d05d78..ec456ec6f3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,6 +32,10 @@ on: This is the ref we will use to pull the changes from the coreos_remote. required: false +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + permissions: {} jobs: