From 553f3c2ee004bef7f241658fdb3a53867e23d388 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Thu, 23 Feb 2023 09:56:12 +0100 Subject: [PATCH] Cancel concurrent workflow runs in PRs. (cherry picked from commit 5a3e21788de7df9a037caea355725c1fdb35c48c) --- .github/workflows/ansible-test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 36219477..4c4ce7b7 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -11,6 +11,11 @@ on: - stable-1 pull_request: +concurrency: + # Make sure there is at most one active run per PR, but do not cancel any non-PR runs + group: ${{ github.workflow }}-${{ (github.head_ref && github.event.number) || github.run_id }} + cancel-in-progress: true + jobs: sanity: name: EOL Sanity (Ⓐ${{ matrix.ansible }})