Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
bugfix/COR-1598-sync-after-feature-fix (#4805)
Browse files Browse the repository at this point in the history
* bugfix(sanity-migration): attempt to fix sync-after-feature scripts;

* bugfix(sanity-migration): enhance V2 script with different error logging; alter workflows to use V2 script (for the time being);

---------

Co-authored-by: VWSCoronaDashboard26 <[email protected]>
  • Loading branch information
VWSCoronaDashboard26 and VWSCoronaDashboard26 authored Jun 30, 2023
1 parent fb908c3 commit 219b7cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sync-sanity-lokalize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: yarn workspace @corona-dashboard/icons build

- name: Synchronize texts
run: yarn workspace @corona-dashboard/cms lokalize:sync-after-feature
run: yarn workspace @corona-dashboard/cms-v2 lokalize:sync-after-feature
env:
SANITY_TOKEN: ${{ secrets.sanity_token }}

Expand Down
4 changes: 2 additions & 2 deletions packages/cms-v2/src/lokalize/sync-after-feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ import { AddMutation, DeleteMutation, finalizeMoveMutations, getCollapsedAddDele
const additions = addDeleteMutations.filter(hasValueAtKey('action', 'add' as const));

await syncAdditionsToProduction(additions);
})().catch((err) => {
console.error('An error occurred:', err.message);
})().catch((error) => {
console.error('An error occurred:', error);
process.exit(1);
});

Expand Down

0 comments on commit 219b7cb

Please sign in to comment.