From 768cdf37fb456a2e6e92050275a13173f2060ca3 Mon Sep 17 00:00:00 2001 From: andreykropotov Date: Mon, 9 Nov 2026 22:03:24 +0400 Subject: [PATCH] fix(sync): JSON files of the React Native package get the same replacements as its code --- .github/workflows/reusable-rn-synchronization.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/reusable-rn-synchronization.yml b/.github/workflows/reusable-rn-synchronization.yml index 43613c17..5d106f4c 100644 --- a/.github/workflows/reusable-rn-synchronization.yml +++ b/.github/workflows/reusable-rn-synchronization.yml @@ -119,6 +119,18 @@ jobs: -e 's/Rees46/PersonaClick/g' \ -e 's/rees46/personaClick/g' {} + + # JSON other than package.json (test fixtures, for one) gets the rules of + # the code above: the tests compare these files with strings in the code. + - name: Apply changes to JSON files + if: env.path_changes != '0' + working-directory: repo2 + run: | + find . -type f -name '*.json' ! -name 'package.json' -exec sed -i \ + -e 's|https://api.rees46.ru/|https://api.personaclick.com/|g' \ + -e 's/REES46/PersonaClick/g' \ + -e 's/Rees46/PersonaClick/g' \ + -e 's/rees46/personaClick/g' {} + + - name: Apply changes to YAML files if: env.path_changes != '0' working-directory: repo2