From 9ca0409b1a6576f6ae9d0aaf2cb0dcd20f194693 Mon Sep 17 00:00:00 2001 From: Alexey Kuleshevich Date: Sun, 29 Oct 2023 21:11:24 +0100 Subject: [PATCH] Add an instruction on GithubActions to cancel in-progrss runs --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b6b33b..98fd7d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,11 @@ defaults: run: shell: bash +# Cancel running actions when a new action on the same PR is started +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: cabal: name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}