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 <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche
2022-05-09 15:00:42 +02:00
committed by GitHub
parent 85ec66a4e0
commit 5dc4226cc5

View File

@ -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: