From eb459a74d145246cf6f68c1b2d1821f8c874edbe Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 9 Sep 2022 16:55:24 +0000 Subject: [PATCH] :robot: Add concurrency to pipeline run only on main and PRs --- .github/workflows/image.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/image.yaml b/.github/workflows/image.yaml index b4daf6f..3ae2b77 100644 --- a/.github/workflows/image.yaml +++ b/.github/workflows/image.yaml @@ -2,8 +2,14 @@ name: Build image on: push: + branches: + - main pull_request: +concurrency: + group: ci-image-${{ github.head_ref || github.ref }}-${{ github.repository }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest