CI: add concurrency rules to skip redundant build
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 26 May 2023 12:43:12 +0000 (14:43 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 26 May 2023 12:55:52 +0000 (14:55 +0200)
Add concurrency rules to skip redundant build to skip extra build test
on force push on pull request.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
.github/workflows/multi-arch-test-build.yml

index 60ff51063bf1132cc4d50fe074375efd119b3415..9cac7c9b395370c737607863a9bb3a13b7c6f9d7 100644 (file)
@@ -3,6 +3,10 @@ name: Test Build
 on:
   pull_request:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 jobs:
   build:
     name: Test ${{ matrix.arch }}