diff options
| author | CYFS <[email protected]> | 2025-10-01 11:00:07 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-01 11:00:07 +0800 |
| commit | d9a6a5307bc915fd715c170c4626f1c4f264651e (patch) | |
| tree | 22acf9165f7566394976c70507b34befeae7f3be /.github/workflows/static_code_analysis.yml | |
| parent | 3dd4f71bb6bd546757f591e1ed61e8b96ae95352 (diff) | |
[github][ci]: add concurrency control to GitHub Actions (#10761)
ci: add concurrency control to GitHub Actions
Diffstat (limited to '.github/workflows/static_code_analysis.yml')
| -rw-r--r-- | .github/workflows/static_code_analysis.yml | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
