From e57eaf35102cbf1192d67ac97e8bd198057ed436 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Mon, 27 Apr 2026 00:22:12 +0300 Subject: [PATCH 1/2] Add concurrency settings to CI workflows for improved job management --- .github/workflows/ci.yml | 4 ++++ .github/workflows/docs.yml | 5 +++++ .github/workflows/security.yml | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd896525..b3e458d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,10 @@ on: - cron: '0 6 * * 6' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + jobs: test-smoke: name: Smoke tests (${{ matrix.os }}, ${{ matrix.python-version }}) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 11e673ac..4a07d68c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -8,6 +8,11 @@ on: 'main' schedule: - cron: '0 6 * * 6' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 7407f3cb..c99ab628 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -8,6 +8,10 @@ on: - cron: '30 6 * * 1' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + permissions: actions: read contents: read From ac9c3796fa68a1fec3718e760fa01b2653b0d1d5 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Mon, 27 Apr 2026 00:24:47 +0300 Subject: [PATCH 2/2] Add maintenance section to release notes for CI concurrency settings --- docs/about/release-notes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md index 1bfc906e..ca57a6dc 100644 --- a/docs/about/release-notes.md +++ b/docs/about/release-notes.md @@ -31,6 +31,10 @@ The current members of the MkDocs-NG team. * Fix malformed URLs (e.g., unterminated IPv6 literals) crashing the entire build. #45 * Fix build crash caused by broken (dangling) symlinks in the docs directory. #46 +### Maintenance + +* Add concurrency settings to CI workflows so redundant in-progress jobs are cancelled when new pushes occur. #47 + ## Version 1.7.1 (2026-04-25) ### Fixed