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: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
903672c394
commit
e09f78a414
1 changed files with 1 additions and 0 deletions
1
.github/workflows/doc-publish.yml
vendored
1
.github/workflows/doc-publish.yml
vendored
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue