From 831a8fdd3d9c0bf755f0249ba53af521ffb7b967 Mon Sep 17 00:00:00 2001
From: picklesrus <picklesrus@users.noreply.github.com>
Date: Thu, 3 Sep 2020 12:47:42 -0400
Subject: [PATCH] Add translation push cron job to circle.

---
 .circleci/config.yml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index a49613fd6..3398a7295 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -162,9 +162,31 @@ jobs:
           git config --global user.email $(git log --pretty=format:"%ae" -n1)
           git config --global user.name $(git log --pretty=format:"%an" -n1)
       - run: npm run deploy -- -e $CIRCLE_BRANCH
+  push-translations:
+    <<: *defaults
+    steps:
+      - *restore_git_cache
+      - checkout
+      - *restore_npm_cache
+      - run: npm run i18n:src
+      - run: npm run i18n:push
 
 workflows:
   version: 2
+  push-translations:
+    triggers:
+      - schedule:
+          cron: 0 0 * * * # daily at 12 UTC, 8 ET
+          filters:
+            branches:
+              only:
+                - develop
+    jobs:
+      - setup
+      - push-translations:
+          requires:
+              - setup
+
   build-test-deploy:
     jobs:
       - setup
-- 
GitLab