From cb679adf184d30261368707cd2b4f6cc7cf2a686 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Wed, 11 Jan 2023 13:52:38 +0100 Subject: CI: add concurrency limits for pr test Add concurrency limits for pull request test so that on pull request refresh old jobs are cancelled. The group is created based on the github ref + workflow name and the workflow is cancelled only it it comes from a pull_request event. Push events are not affected by this limit. Signed-off-by: Christian Marangi --- .github/workflows/packages.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.github/workflows/packages.yml') diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 7bcaa2b3d3..340ee0c204 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -23,6 +23,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: name: Build Packages with external toolchain -- cgit v1.2.3