From 6b023e47d257926d520ce1d28c76ec3d52802fd8 Mon Sep 17 00:00:00 2001 From: Rami Lukata <32602478+rlukata@users.noreply.github.com> Date: Wed, 22 Mar 2023 11:25:11 -0700 Subject: [PATCH] add concurrency to ci (#463) --- .github/workflows/bench_pr.yml | 4 ++++ .github/workflows/bench_trends.yml | 4 ++++ .github/workflows/main.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/bench_pr.yml b/.github/workflows/bench_pr.yml index aa828064ee..5a47040a3b 100644 --- a/.github/workflows/bench_pr.yml +++ b/.github/workflows/bench_pr.yml @@ -10,6 +10,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: bench: runs-on: [self-hosted, bench, "${{ matrix.os }}", "${{ matrix.device }}"] diff --git a/.github/workflows/bench_trends.yml b/.github/workflows/bench_trends.yml index dcd8fe9060..87973de383 100644 --- a/.github/workflows/bench_trends.yml +++ b/.github/workflows/bench_trends.yml @@ -12,6 +12,10 @@ on: # pull_request: # branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: bench: runs-on: [self-hosted, bench, "${{ matrix.os }}", "${{ matrix.device }}"] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 14bccac99b..3406009d8b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: check: runs-on: ubuntu-latest