From fbf8f710f00de10323d9f2e0c749be39d90ac39e Mon Sep 17 00:00:00 2001 From: Illviljan <14371165+Illviljan@users.noreply.github.com> Date: Sun, 24 Oct 2021 12:43:27 +0200 Subject: [PATCH 1/3] Only run benchmark when labeled --- .github/workflows/benchmarks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 7c3cb114201..b978c6a7294 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -9,8 +9,8 @@ jobs: benchmark: if: | ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') - && github.event_name == 'pull_request' - || github.event_name == 'workflow_dispatch' }} + && (github.event_name == 'pull_request' + || github.event_name == 'workflow_dispatch') }} name: Linux runs-on: ubuntu-20.04 env: From 68a26630c813ac188053780bd8f652db1f3a962d Mon Sep 17 00:00:00 2001 From: Illviljan <14371165+Illviljan@users.noreply.github.com> Date: Sun, 24 Oct 2021 12:49:09 +0200 Subject: [PATCH 2/3] Update benchmarks.yml --- .github/workflows/benchmarks.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index b978c6a7294..41dd6181b59 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -3,14 +3,12 @@ name: Benchmark on: pull_request: types: [opened, reopened, synchronize, labeled] - workflow_dispatch: jobs: benchmark: if: | ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') - && (github.event_name == 'pull_request' - || github.event_name == 'workflow_dispatch') }} + && github.event_name == 'pull_request' }} name: Linux runs-on: ubuntu-20.04 env: From 3273149ac80ae4249d456caad5480a70b28e8019 Mon Sep 17 00:00:00 2001 From: Illviljan <14371165+Illviljan@users.noreply.github.com> Date: Sun, 24 Oct 2021 13:03:21 +0200 Subject: [PATCH 3/3] Update benchmarks.yml --- .github/workflows/benchmarks.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 41dd6181b59..de506546ac9 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -3,12 +3,11 @@ name: Benchmark on: pull_request: types: [opened, reopened, synchronize, labeled] + workflow_dispatch: jobs: benchmark: - if: | - ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') - && github.event_name == 'pull_request' }} + if: ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }} name: Linux runs-on: ubuntu-20.04 env: