From 57e6bb7ca5056deebbc64d0c498236a8329cdf79 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Thu, 23 Feb 2023 09:56:26 +0100 Subject: [PATCH] Cancel concurrent workflow runs in PRs. (cherry picked from commit d0e61097f17bdf86bb3e2681f83f76da3060f787) --- .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 b2af84aa..a97ec81d 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -11,6 +11,11 @@ on: - stable-2 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 }})