From bc0e464dbbbb44b36602632c2117984fc381fb1f Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller Date: Tue, 13 Feb 2024 16:33:39 -0600 Subject: [PATCH] Cancel in progress workflows on new commits --- .github/workflows/benchmarks.yml | 4 ++++ .github/workflows/test.yml | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 7c64d21f6..4737fc7c3 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -2,6 +2,10 @@ name: benchmarks on: [pull_request] +concurrency: + group: ${{ github.actor }}-${{ github.ref }} + cancel-in-progress: true + jobs: benchmarks: strategy: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52980cd54..97d764ea6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,15 @@ name: tests -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'GWB-*' + pull_request: + +concurrency: + group: ${{ github.actor }}-${{ github.ref }} + cancel-in-progress: true jobs: test_indentation: