From f291d1b6c2530898fcdb035a7017d43f6ecc41e7 Mon Sep 17 00:00:00 2001 From: Khalil Hammami Date: Mon, 3 Feb 2025 22:29:45 +0100 Subject: [PATCH] Enhance ci workflow This configuration ensures that only one workflow run for the same branch is active at a time, and cancels any in-progress runs when a new one is triggered. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87171f30..9975df62 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,10 +3,12 @@ on: push: branches: - main - - mkdocs-barto workflow_dispatch: permissions: contents: write +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true jobs: deploy: runs-on: ubuntu-latest