From 86107a647cb0a7f37c04dd7ab0cd79f547fafaf7 Mon Sep 17 00:00:00 2001 From: Petr Štetiar Date: Fri, 26 May 2023 16:25:28 +0200 Subject: ci: cancel concurrent builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To save some build resources, lets cancel ongoing builds after force pushing new sources into the pull request branch. Signed-off-by: Petr Štetiar --- .github/workflows/openwrt-ci-master.yml | 4 ++++ .github/workflows/openwrt-ci-pull-request.yml | 4 ++++ 2 files changed, 8 insertions(+) (limited to '.github') diff --git a/.github/workflows/openwrt-ci-master.yml b/.github/workflows/openwrt-ci-master.yml index 432c80f..df38774 100644 --- a/.github/workflows/openwrt-ci-master.yml +++ b/.github/workflows/openwrt-ci-master.yml @@ -5,6 +5,10 @@ on: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: CI_ENABLE_UNIT_TESTING: 1 CI_TARGET_BUILD_DEPENDS: libnl-tiny ubus uci diff --git a/.github/workflows/openwrt-ci-pull-request.yml b/.github/workflows/openwrt-ci-pull-request.yml index 53e923f..87cb82a 100644 --- a/.github/workflows/openwrt-ci-pull-request.yml +++ b/.github/workflows/openwrt-ci-pull-request.yml @@ -10,6 +10,10 @@ env: CI_ENABLE_UNIT_TESTING: 1 CI_TARGET_BUILD_DEPENDS: libnl-tiny ubus uci +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: native_testing: name: Various native checks -- cgit v1.2.3