From d69fdaadaedd7d1156fd99cb382ea0def1724799 Mon Sep 17 00:00:00 2001 From: Andrew Gunnerson Date: Sun, 1 Oct 2023 19:08:48 -0400 Subject: [PATCH] ci.yml: Only cancel previous runs for pull requests Fixes: #177 Signed-off-by: Andrew Gunnerson --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff9784f..098c4c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,10 @@ on: - master pull_request: -# This allows a subsequently queued workflow run to interrupt previous runs +# This allows a subsequently queued workflow run to interrupt previous runs, but +# only in pull requests. concurrency: - group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + group: '${{ github.workflow }} @ ${{ github.head_ref || github.sha }}' cancel-in-progress: true jobs: