From cd24c8ddcb33e43045ba335e627ba66a4fe8e81a Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Tue, 7 Jan 2025 11:59:05 -0500 Subject: [PATCH] feat: add concurrency and cancel in progress --- .github/workflows/publish.yml | 4 ++++ .github/workflows/test.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e837d4a..11bc11d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: matrix-builder: runs-on: ubuntu-24.04 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10e5e1c..895f4f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,6 +3,10 @@ name: Test Docker Images on: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: matrix-builder: runs-on: ubuntu-24.04