From d6276f0fc5d32d741374fd28615feb6be594cbfe Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Wed, 5 Jun 2024 15:19:16 +0200 Subject: [PATCH] Add condition to `benchmark` job in `push-important-models.yml` (#31259) fix Co-authored-by: ydshieh --- .github/workflows/push-important-models.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/push-important-models.yml b/.github/workflows/push-important-models.yml index db34cb0fc5..41bcd43fcc 100644 --- a/.github/workflows/push-important-models.yml +++ b/.github/workflows/push-important-models.yml @@ -136,5 +136,7 @@ jobs: benchmark: name: Benchmark workflow + needs: get_modified_models + if: ${{ needs.get_modified_models.outputs.matrix != '[]' && needs.get_modified_models.outputs.matrix != '' && fromJson(needs.get_modified_models.outputs.matrix)[0] != null }} uses: ./.github/workflows/benchmark.yml secrets: inherit