]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
ci: add concurrency to the main CI workflows
authorChristian Hewitt <christianshewitt@gmail.com>
Wed, 6 Dec 2023 05:46:11 +0000 (05:46 +0000)
committerFlole998 <Flole998@users.noreply.github.com>
Wed, 6 Dec 2023 06:46:27 +0000 (07:46 +0100)
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
.github/workflows/build.yml
.github/workflows/test-compile.yml

index 4bf5bef63b3d88772cdb9d5099b0347ba571b3f5..acf223215fd879d21f38a12dc246ae554c3e0a5b 100644 (file)
@@ -4,10 +4,14 @@ on:
   pull_request:
     branches:
       - master
-
   # Allows you to run this workflow manually from the Actions tab
   workflow_dispatch:
 
+concurrency:
+  # auto-cancel previous runs if the pull request is force-push updated
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
+  cancel-in-progress: true
+
 jobs:
   build-raspberry:
     runs-on: ubuntu-latest
index e210eefa02fe17e8180a4c2dbf4c1795399583a2..781f1edd402f8d8045c4e4b78e5520fb5d7af6d1 100644 (file)
@@ -5,10 +5,14 @@ on:
     branches: [ master ]
   pull_request:
     branches: [ master ]
-
   # Allows you to run this workflow manually from the Actions tab
   workflow_dispatch:
 
+concurrency:
+  # auto-cancel previous runs if the pull request is force-push updated
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
+  cancel-in-progress: true
+
 jobs:
  build-ubuntu-latest:
     runs-on: ubuntu-latest