From 5b54dc112c63b710b12570a298aec12035549f54 Mon Sep 17 00:00:00 2001 From: Zhekai <40530851+zhekaiii@users.noreply.github.com> Date: Sat, 3 Aug 2024 01:20:23 +0800 Subject: [PATCH] Add concurrency configuration for CI workflow (#3009) * Add concurrency configuration for CI workflow * Skip ci actions when in draft mode --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d15263e88..ba566c336f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,14 +5,20 @@ on: branches: - master pull_request: + types: [opened, synchronize, reopened, ready_for_review] env: TZ: Asia/Singapore NODE_OPTIONS: --max_old_space_size=8192 GENERATE_SOURCEMAP: false +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: lint: + if: github.event.pull_request.draft == false runs-on: ubuntu-latest strategy: matrix: