From 1f4288670d95492a1539ffe330d4a52c13436113 Mon Sep 17 00:00:00 2001 From: tanishqmanuja Date: Thu, 11 Jan 2024 18:24:26 +0530 Subject: [PATCH] ci: add concurrency check --- .github/workflows/ci.yaml | 6 +++++- .github/workflows/release.yaml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3331728..36c7cb0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,8 +17,12 @@ on: - "docs/**" - "README.md" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: - release: + build: permissions: contents: write diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b461f0d..76f4c85 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,6 +12,10 @@ on: - minor - major +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: release: permissions: