Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Prevent dependabot PRs from running a docs preview (#747)
Krystle Salazar5b4c8b913356
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.ymlindex 46d7d5f24..5d5ded355 100644--- a/.github/workflows/ci_cd.yml+++ b/.github/workflows/ci_cd.yml@@ -255,6 +255,7 @@ jobs:publish-docs:name: Publish developer docsruns-on: ubuntu-latest+ # Push new docs when `main` is pushed to in this repositoryif: github.event_name == 'push' && github.repository == 'WordPress/openverse-api'needs:- build-images@@ -289,7 +290,8 @@ jobs:docs-preview:name: Publish preview of developer docs for the branchruns-on: ubuntu-latest- if: github.event_name == 'pull_request' && github.repository == 'WordPress/openverse-api'+ # Check if the event is not triggered by a fork or dependabot+ if: github.event_name == 'pull_request' && github.repository_owner == 'WordPress' && github.actor != 'dependabot[bot]'needs:- build-images