Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Only run the docs preview on pull requests (#686)

Madison Swain-Bowden270b086095ba
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 140437664..6427fa2da 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -285,7 +285,7 @@ jobs:
docs-preview:
name: Publish preview of developer docs for the branch
runs-on: ubuntu-latest
- if: github.ref != 'refs/heads/main'
+ if: github.event_name == 'pull_request'
needs:
- build-images