From 21a5ff5e2417db8e830a8e522038644b75017a81 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 13 Oct 2022 20:51:04 +0530 Subject: [PATCH 1/2] chore(github-action): cancel any previous ci-cd action in same PR / branch ref - https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre/67939898#67939898 Signed-off-by: Pranav C --- .github/workflows/ci-cd.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 7e8df26cf6..3f8b181aba 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -19,6 +19,11 @@ on: - "scripts/cypress/**" - "packages/nocodb/**" - ".github/workflows/ci-cd.yml" + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: cypress-restTableOps-run-cache: runs-on: ubuntu-20.04 @@ -751,4 +756,4 @@ jobs: with: name: cypress-restMisc-run-cache-snapshots path: scripts/cypress/screenshots - retention-days: 2 \ No newline at end of file + retention-days: 2 From e461341d98b94707d728bc2ede19d6665aa9b451 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 13 Oct 2022 20:57:07 +0530 Subject: [PATCH 2/2] chore(github-action): cancel any previous release action in same PR / branch Signed-off-by: Pranav C --- .github/workflows/release-pr.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index eb39fd23d7..f0e77db917 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -12,6 +12,11 @@ on: - "packages/nc-gui/**" - "packages/nc-plugin/**" - "packages/nocodb/**" + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: # enrich tag for pr release set-tag: