From 8e7ad5652647797025edf6f3912f29acfc6dae3e Mon Sep 17 00:00:00 2001 From: Larry Knox Date: Wed, 15 Mar 2023 09:08:32 -0500 Subject: Add concurrency option to cancel in-progress jobs (#2539) (#2558) Co-authored-by: Scot Breitenfeld --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ece39c9..a08848e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,12 @@ on: - 'ACKNOWLEDGEMENTS' - 'COPYING**' - '**.md' - + +# Using concurrency to cancel any in-progress job or run +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + # A workflow run is made up of one or more jobs that can run sequentially or # in parallel. We just have one job, but the matrix items defined below will # run in parallel. -- cgit v0.12