From d9a6a5307bc915fd715c170c4626f1c4f264651e Mon Sep 17 00:00:00 2001 From: CYFS <2805686936@qq.com> Date: Wed, 1 Oct 2025 11:00:07 +0800 Subject: [github][ci]: add concurrency control to GitHub Actions (#10761) ci: add concurrency control to GitHub Actions --- .github/workflows/static_code_analysis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.github/workflows/static_code_analysis.yml') diff --git a/.github/workflows/static_code_analysis.yml b/.github/workflows/static_code_analysis.yml index 9e2d4b4e93..3a5fdb34f5 100644 --- a/.github/workflows/static_code_analysis.yml +++ b/.github/workflows/static_code_analysis.yml @@ -19,6 +19,10 @@ on: - '**/README.md' - '**/README_zh.md' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: scancode_job: runs-on: ubuntu-22.04 @@ -50,4 +54,4 @@ jobs: sudo make install FILESDIR=/usr/local/share/Cppcheck cppcheck --version cd .. - python tools/ci/cpp_check.py check + python tools/ci/cpp_check.py check \ No newline at end of file -- cgit v1.3.1