From: Christian Hewitt Date: Wed, 6 Dec 2023 05:46:11 +0000 (+0000) Subject: ci: add concurrency to the main CI workflows X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b34c31f25078c985ac473c4843427c361372a2d;p=thirdparty%2Ftvheadend.git ci: add concurrency to the main CI workflows Signed-off-by: Christian Hewitt --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4bf5bef63..acf223215 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,10 +4,14 @@ on: pull_request: branches: - master - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +concurrency: + # auto-cancel previous runs if the pull request is force-push updated + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: build-raspberry: runs-on: ubuntu-latest diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index e210eefa0..781f1edd4 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -5,10 +5,14 @@ on: branches: [ master ] pull_request: branches: [ master ] - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +concurrency: + # auto-cancel previous runs if the pull request is force-push updated + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: build-ubuntu-latest: runs-on: ubuntu-latest