diff --git a/.github/workflows/co-docs-builder.yml b/.github/workflows/co-docs-builder.yml index e37cdf4aca..47a3fdc4e5 100644 --- a/.github/workflows/co-docs-builder.yml +++ b/.github/workflows/co-docs-builder.yml @@ -20,7 +20,7 @@ on: jobs: publish: - if: contains(github.event.pull_request.labels.*.name, 'ci:doc-build') + if: github.event.label.name == 'ci:doc-build' || github.event.pull_request.author_association == 'MEMBER' uses: elastic/workflows/.github/workflows/docs-elastic-co-publish.yml@main with: subdirectory: 'docs/en/serverless/'