From 486d27a04f3694751322e621d3bd990f8a85d171 Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Wed, 20 Jul 2022 00:25:56 +0800 Subject: [PATCH] chore: Cancel prev CI actions that are still running on push (#14766) --- .github/workflows/ci.yml | 4 ++++ .github/workflows/e2e-tests-breaking.yml | 4 ++++ .github/workflows/e2e-tests-esm.yml | 4 ++++ .github/workflows/e2e-tests.yml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 382fce0b8c10..eae8b08f7ff8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,10 @@ on: [push, pull_request] permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: prepare-yarn-cache: name: Prepare Cache diff --git a/.github/workflows/e2e-tests-breaking.yml b/.github/workflows/e2e-tests-breaking.yml index 7d9627a71de4..7bc5c862d411 100644 --- a/.github/workflows/e2e-tests-breaking.yml +++ b/.github/workflows/e2e-tests-breaking.yml @@ -7,6 +7,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: e2e-publish: name: Publish to local Verdaccio registry diff --git a/.github/workflows/e2e-tests-esm.yml b/.github/workflows/e2e-tests-esm.yml index ee50612fa2c8..eb9ec46690a6 100644 --- a/.github/workflows/e2e-tests-esm.yml +++ b/.github/workflows/e2e-tests-esm.yml @@ -7,6 +7,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: e2e-publish: name: Publish to local Verdaccio registry diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index d4a770b75ece..525d9c21e011 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -7,6 +7,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: e2e-publish: name: Publish to local Verdaccio registry