From 77aba0d1e4f3c93cc04630ff52dc0d4c6d71499f Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Mon, 5 Feb 2024 09:40:02 +0100 Subject: [PATCH] build(ci): Properly skip node CI steps when not changed --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c87ef1782865..d509d27c070b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -510,6 +510,7 @@ jobs: job_node_unit_tests: name: Node (${{ matrix.node }}) Unit Tests + if: needs.job_get_metadata.outputs.changed_node == 'true' || github.event_name != 'pull_request' needs: [job_get_metadata, job_build] timeout-minutes: 10 runs-on: ubuntu-20.04 @@ -542,7 +543,7 @@ jobs: job_profiling_node_unit_tests: name: Node Profiling Unit Tests needs: [job_get_metadata, job_build] - if: needs.job_get_metadata.outputs.changed_node || needs.job_get_metadata.outputs.changed_profiling_node == 'true' || github.event_name != 'pull_request' + if: needs.job_get_metadata.outputs.changed_node =='true' || needs.job_get_metadata.outputs.changed_profiling_node == 'true' || github.event_name != 'pull_request' runs-on: ubuntu-latest timeout-minutes: 10 steps: @@ -1217,7 +1218,7 @@ jobs: # if profiling or profiling node package had changed or if we are on a release branch. if: | (needs.job_get_metadata.outputs.changed_profiling_node == 'true') || - (needs.job_get_metadata.outputs.is_release) || + (needs.job_get_metadata.outputs.is_release == 'true') || (github.event_name != 'pull_request') runs-on: ${{ matrix.os }} container: ${{ matrix.container }}