CI: add concurrency rules to skip redundant build
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 26 May 2023 12:43:12 +0000 (14:43 +0200)
committerNick Hainke <vincent@systemli.org>
Mon, 26 Jun 2023 09:29:59 +0000 (11:29 +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 3aabab41e8a303901137f78fca340c2f005b565c..c40bf01838bbd2fa394af1430f144e8203ea8042 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 }}