From 9e202a82867f6788598efba7973de11b8b6b1e7b Mon Sep 17 00:00:00 2001 From: Ewere Diagboya Date: Tue, 1 Feb 2022 15:27:00 +0100 Subject: [PATCH 1/3] added label trigger --- .github/workflows/simnode.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/simnode.yml b/.github/workflows/simnode.yml index efc3842d430..4106e355ccb 100644 --- a/.github/workflows/simnode.yml +++ b/.github/workflows/simnode.yml @@ -2,9 +2,8 @@ name: Run Simnode on: pull_request: - branches: - - releases - - main + types: + - labeled jobs: simnode: From b1a3d3568f3833fb4dc6f43c020ab48981e0f190 Mon Sep 17 00:00:00 2001 From: Ewere Diagboya Date: Tue, 1 Feb 2022 15:35:09 +0100 Subject: [PATCH 2/3] add if condition based on lable --- .github/workflows/simnode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simnode.yml b/.github/workflows/simnode.yml index 4106e355ccb..8f38e58cb1e 100644 --- a/.github/workflows/simnode.yml +++ b/.github/workflows/simnode.yml @@ -43,7 +43,7 @@ jobs: env: BASE_BRANCH: ${{ github.event.pull_request.base.ref }} GITHUB_BRANCH_NAME: ${{ steps.branch-name.outputs.current_branch }} - + if: contains( github.event.pull_request.labels.*.name, 'needs-benchmarks') if: env.RUNTIME_CHECK == 1 id: run_simnode run: .maintain/run_simnode.sh From 1b784ad3bd3462997b1219213abbbe033a53e527 Mon Sep 17 00:00:00 2001 From: Ewere Diagboya Date: Tue, 1 Feb 2022 16:52:32 +0100 Subject: [PATCH 3/3] fix if statement --- .github/workflows/simnode.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/simnode.yml b/.github/workflows/simnode.yml index 8f38e58cb1e..03cc95e4756 100644 --- a/.github/workflows/simnode.yml +++ b/.github/workflows/simnode.yml @@ -43,7 +43,6 @@ jobs: env: BASE_BRANCH: ${{ github.event.pull_request.base.ref }} GITHUB_BRANCH_NAME: ${{ steps.branch-name.outputs.current_branch }} - if: contains( github.event.pull_request.labels.*.name, 'needs-benchmarks') - if: env.RUNTIME_CHECK == 1 + if: contains( github.event.pull_request.labels.*.name, 'needs-benchmarks') && env.RUNTIME_CHECK == 1 id: run_simnode run: .maintain/run_simnode.sh