From 4259f01fc87d24849ed835a9f3f989eb0171baf0 Mon Sep 17 00:00:00 2001 From: Aisha Blake Date: Thu, 9 Apr 2020 14:46:09 -0400 Subject: [PATCH 1/2] Automate test translation PR --- .circleci/config.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index fedf2b4bd6090..98f81d3d5789a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -399,6 +399,19 @@ jobs: command: yarn run update-source working_directory: ~/project/scripts/i18n + sync_translation_repo: + executor: node + steps: + - checkout + - run: git config --global user.name "GatsbyJS Bot" + - run: git config --global user.email "core-team@gatsbyjs.com" + - run: + command: yarn + working_directory: ~/project/scripts/i18n + - run: + command: yarn run sync ja + working_directory: ~/project/scripts/i18n + windows_unit_tests: executor: name: win/vs2019 @@ -644,6 +657,17 @@ workflows: only: - master + weekly-i18n-sync: + triggers: + - schedule: + cron: "0 19 * * 4" + filters: + branches: + only: + - master + jobs: + - sync_translation_repo + nightly-react-next: triggers: - schedule: From cc161ffadcc56da2553284ba5b1a8f2c9bbf0050 Mon Sep 17 00:00:00 2001 From: Aisha Blake Date: Thu, 9 Apr 2020 14:49:17 -0400 Subject: [PATCH 2/2] Fix YAML spacing --- .circleci/config.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 98f81d3d5789a..bafb06df2ce00 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -401,16 +401,16 @@ jobs: sync_translation_repo: executor: node - steps: - - checkout - - run: git config --global user.name "GatsbyJS Bot" - - run: git config --global user.email "core-team@gatsbyjs.com" - - run: - command: yarn - working_directory: ~/project/scripts/i18n - - run: - command: yarn run sync ja - working_directory: ~/project/scripts/i18n + steps: + - checkout + - run: git config --global user.name "GatsbyJS Bot" + - run: git config --global user.email "core-team@gatsbyjs.com" + - run: + command: yarn + working_directory: ~/project/scripts/i18n + - run: + command: yarn run sync ja + working_directory: ~/project/scripts/i18n windows_unit_tests: executor: