From 4ae9fb6ce5b3ed48e8fbf96300186afc81415484 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Fri, 5 Nov 2021 11:40:48 +0100 Subject: [PATCH] ci: doc-publish: fix run condition syntax To restrict the job to the upstream repository a new `if` entry was added, however, another `if` was already present (violates yaml). Combined the conditions into a single expression. Signed-off-by: Gerard Marull-Paretas --- .github/workflows/doc-publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 7be7de86ed8..567bf937049 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -19,8 +19,9 @@ jobs: doc-publish: name: Publish Documentation runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} - if: github.repository == 'zephyrproject-rtos/zephyr' + if: | + github.event.workflow_run.conclusion == 'success' && + github.repository == 'zephyrproject-rtos/zephyr' steps: - name: Download artifacts