Skip to content

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

Only generate POT file if `en.json5` has changed (#893)

Dhruv Bhanushali2646c5ead465
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index faa383e4c..2bc19330e 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -39,9 +39,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
+
- name: Get changes
- uses: ./.github/actions/get-changes
id: paths-filter
+ uses: ./.github/actions/get-changes
get-image-tag:
name: Get image tag
@@ -182,12 +183,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- - id: paths-filter
- name: Conditionally skip job
- uses: dorny/paths-filter@v2
- with:
- filters: .github/filters.yml
-
- name: Setup CI env
uses: ./.github/actions/setup-env
with:
diff --git a/.github/workflows/generate_pot.yml b/.github/workflows/generate_pot.yml
index e31573275..8a92a5848 100644
--- a/.github/workflows/generate_pot.yml
+++ b/.github/workflows/generate_pot.yml
@@ -2,6 +2,9 @@ name: Generate POT file
on:
push:
+ # The workflow will only run when both filters are satisfied.
+ paths:
+ - frontend/src/locales/scripts/en.json5
branches:
- main