From 28df431bb1d9318f62b9321c2bfa066dc6173112 Mon Sep 17 00:00:00 2001 From: Tom Herbers Date: Sun, 10 Nov 2024 21:05:43 +0100 Subject: [PATCH] github: build-gluon: cancel obsolete in progress workflows for PRs PR workflows don't need to continue if new commits have been commited. Based on: https://github.com/freifunk-gluon/gluon/commit/1523a2f4deb566004ac41e369209ec015fbfaf79 --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 96b0c09..78cdb1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,12 @@ on: description: 'Targets to build (space separated)' required: false +concurrency: + # yamllint disable rule:line-length + group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ github.event.pull_request.number || github.run_id }} + # yamllint enable rule:line-length + cancel-in-progress: true + jobs: build-meta: outputs: