From af90ad321c02d9213e33cc4dc3bb5a9137564b7f Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Mon, 11 Nov 2024 15:51:03 +0000 Subject: [PATCH] Cancel in-progress slow tests on push --- .github/workflows/cislowtestmode.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cislowtestmode.yml b/.github/workflows/cislowtestmode.yml index 2a19682f0..f898f8654 100644 --- a/.github/workflows/cislowtestmode.yml +++ b/.github/workflows/cislowtestmode.yml @@ -3,11 +3,15 @@ name: CI Slow on: push: - branches: - - main - - develop + branches-ignore: + - classic* workflow_dispatch: - pull_request: + +concurrency: + # Use github.run_id on main or develop branch (unlimited concurrency) + # Use github.ref otherwise, so that it's unique per branch or PR + group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.ref }} + cancel-in-progress: true jobs: citestmode: