From 45976c37b58436797d2543072e18beea3ecffe36 Mon Sep 17 00:00:00 2001 From: Huan-Cheng Chang Date: Mon, 30 Sep 2024 16:43:35 +0100 Subject: [PATCH] ci: cancel workflow runs for outdated commits --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5c2f0c2..29b645f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,10 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: commitlint: runs-on: ubuntu-latest