From 5dc5f96a61ec6831802296ebecef279fc4726b1c Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 27 Oct 2024 19:44:23 +0100 Subject: [PATCH] Automatically cancel redundant builds --- .github/workflows/build.yml | 3 +++ .github/workflows/license_finder.yml | 3 +++ .github/workflows/playwright.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16e72bb..5edde29 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,9 @@ on: branches: - main pull_request: +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true jobs: build-static-assets: runs-on: ubuntu-latest diff --git a/.github/workflows/license_finder.yml b/.github/workflows/license_finder.yml index debe18d..19cadd4 100644 --- a/.github/workflows/license_finder.yml +++ b/.github/workflows/license_finder.yml @@ -4,6 +4,9 @@ on: branches: - main pull_request: +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true jobs: build-static-assets: runs-on: ubuntu-latest diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 48a846f..bdf273e 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -4,6 +4,9 @@ on: branches: [ main, master ] pull_request: branches: [ main, master ] +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true jobs: test: timeout-minutes: 60