Commit e09f78a4 authored by Stephanos Ioannidis's avatar Stephanos Ioannidis
Browse files

ci: doc-publish: Do not run for pull requests

GitHub Actions may trigger the `workflow_run` event type when the
pull request source branch name matches one of the branches specified
under `branches:`.

This commit updates the documentation publish workflow to skip when the
preceding event type is `pull_request`, in order to prevent pull
request documentation from being uploaded as main documentation.

Signed-off-by: default avatarStephanos Ioannidis <root@stephanos.io>
parent 903672c3
Loading
Loading
Loading
Loading
+1 −0
Changes for .github/workflows/doc-publish.yml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ jobs:
    name: Publish Documentation
    runs-on: ubuntu-latest
    if: |
      github.event.workflow_run.event != 'pull_request' &&
      github.event.workflow_run.conclusion == 'success' &&
      github.repository == 'zephyrproject-rtos/zephyr'