]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: cancel previous builds workflow for branch 9889/head
authorJason Ish <jason.ish@oisf.net>
Wed, 15 Nov 2023 20:48:40 +0000 (14:48 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 24 Nov 2023 19:06:05 +0000 (20:06 +0100)
On a push of the same branch, cancel the previous running builds.yml
workflow.

(cherry picked from commit 2b9603d94ddb0ff1c103ce964f22d8bc63f4392c)

.github/workflows/builds.yml

index d237025b3a9509fbbb05bb94c4ffeb88818ccebb..fa7c744cbf0fd0e74ce828cc39783b9dff4e51f3 100644 (file)
@@ -4,6 +4,10 @@ on:
   - push
   - pull_request
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 env:
   DEFAULT_SV_REPO: https://github.com/OISF/suricata-verify
   DEFAULT_SV_BRANCH: master