From 94ff0d9b8fd71ae9f2282c3ab5e628e70410ba5e Mon Sep 17 00:00:00 2001 From: James Elliott Date: Mon, 16 May 2022 09:45:33 +1000 Subject: [PATCH] ci: skip crowdin untranslated (#3370) --- .buildkite/deployment.sh | 4 ++-- crowdin.yml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.buildkite/deployment.sh b/.buildkite/deployment.sh index 638edad2..d524f93a 100755 --- a/.buildkite/deployment.sh +++ b/.buildkite/deployment.sh @@ -6,9 +6,9 @@ DIVERGED=$(git merge-base --fork-point origin/master > /dev/null; echo $?) if [[ "${DIVERGED}" == 0 ]]; then if [[ "${BUILDKITE_TAG}" == "" ]]; then if [[ "${BUILDKITE_BRANCH}" == "master" ]]; then - CI_BYPASS=$(git diff --name-only HEAD~1 | sed -rn '/^(CODE_OF_CONDUCT.md|CONTRIBUTING.md|README.md|SECURITY.md|\.all-contributorsrc|\.github\/.*|docs\/.*|examples\/.*)/!{q1}' && echo true || echo false) + CI_BYPASS=$(git diff --name-only HEAD~1 | sed -rn '/^(CODE_OF_CONDUCT\.md|CONTRIBUTING\.md|README\.md|SECURITY\.md|crowdin\.yml|\.all-contributorsrc|\.github\/.*|docs\/.*|examples\/.*)/!{q1}' && echo true || echo false) else - CI_BYPASS=$(git diff --name-only `git merge-base --fork-point origin/master` | sed -rn '/^(CODE_OF_CONDUCT.md|CONTRIBUTING.md|README.md|SECURITY.md|\.all-contributorsrc|\.github\/.*|docs\/.*|examples\/.*)/!{q1}' && echo true || echo false) + CI_BYPASS=$(git diff --name-only `git merge-base --fork-point origin/master` | sed -rn '/^(CODE_OF_CONDUCT\.md|CONTRIBUTING\.md|README\.md|SECURITY\.md|crowdin\.yml|\.all-contributorsrc|\.github\/.*|docs\/.*|examples\/.*)/!{q1}' && echo true || echo false) fi else CI_BYPASS="false" diff --git a/crowdin.yml b/crowdin.yml index 998db1dd..5f73da9a 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,5 +1,12 @@ --- +pull_request_title: "i18n: update translations" files: + # - source: /internal/server/locales/en/* + # translation: /internal/server/locales/%locale%/%original_file_name% + # skip_untranslated_strings: true + # skip_untranslated_files: true - source: /internal/server/locales/en/* translation: /internal/server/locales/%locale_with_underscore%/%original_file_name% + skip_untranslated_strings: true + skip_untranslated_files: true ...