From 5dc4226cc5673112b221312125ffc0d78ebc38bf Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Mon, 9 May 2022 15:00:42 +0200 Subject: [PATCH] hil.yml: Run the Event-file job only when the PR is labeled or the (#6717) 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 037a7432..c4078091 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: