Skip to content

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

Narrow filters for emitting new docs (#1983)

Veronika Polushinae4ee6a6dc125
diff --git a/.github/filters.yml b/.github/filters.yml
index 8608d9acb..142ae9d3a 100644
--- a/.github/filters.yml
+++ b/.github/filters.yml
@@ -33,6 +33,11 @@ analytics:
- setup_plausible.sh
documentation:
- documentation/**
+ - frontend/**.mdx
+ - frontend/.storybook/**
+ - frontend/nuxt.config.ts
+ - frontend/tailwind.config.js
+ - frontend/src/styles/tailwind.css
lint:
- prettier.config.js
- .editorconfig
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 8eef7966b..caae52bc0 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -698,10 +698,7 @@ jobs:
github.actor != 'dependabot[bot]'
)
) &&
- (
- needs.get-changes.outputs.frontend == 'true' ||
- needs.get-changes.outputs.documentation == 'true'
- ) &&
+ needs.get-changes.outputs.documentation == 'true' &&
(needs.test-ing.result == 'success' || needs.test-ing.result == 'skipped') &&
(needs.test-api.result == 'success' || needs.test-api.result == 'skipped') &&
(needs.test-cat.result == 'success' || needs.test-cat.result == 'skipped') &&
@@ -916,13 +913,7 @@ jobs:
github.event_name == 'push' &&
github.repository == 'WordPress/openverse' &&
(
- (
- (
- needs.get-changes.outputs.frontend == 'true' ||
- needs.get-changes.outputs.documentation == 'true'
- ) &&
- needs.emit-docs.result != 'success'
- ) ||
+ (needs.get-changes.outputs.documentation == 'true' && needs.emit-docs.result != 'success') ||
(needs.determine-images.outputs.do_publish == 'true' && needs.publish-images.result != 'success') ||
(needs.get-changes.outputs.frontend == 'true' && needs.deploy-frontend.result != 'success') ||
(needs.get-changes.outputs.api == 'true' && needs.deploy-api.result != 'success')