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 <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-11-05 11:40:48 +01:00 committed by Anas Nashif
commit 4ae9fb6ce5

View file

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