From c32f39ce160b3bb685bca16805a5729862c68ea7 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Mon, 9 May 2022 12:33:39 +0200 Subject: [PATCH] hil.yml: Run the Event-file job only when the PR is labeled or the Workflow is scheduled. It looks like the depedency on the Test job was not enough and the Event job was triggering even without the label. Signed-off-by: Abdelatif Guettouche --- .github/workflows/hil.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hil.yml b/.github/workflows/hil.yml index 037a7432c6e..c4078091f77 100644 --- a/.github/workflows/hil.yml +++ b/.github/workflows/hil.yml @@ -110,7 +110,9 @@ jobs: event_file: name: "Event File" - if: ${{ always() }} + if: | + contains(github.event.pull_request.labels.*.name, 'hil_test') || + github.event_name == 'schedule' needs: Test runs-on: ubuntu-latest steps: