From c02767a0d0b561bd5bb6229dbed5e355abd31c28 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Mon, 13 Nov 2023 11:07:49 +0300 Subject: [PATCH] feat: Add ecommerce to the translation pipeline Refs: FC-0012 OEP-58 --- .../extract-translation-source-files.yml | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 5d7bd8b9250..d5f190f5482 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -23,27 +23,28 @@ jobs: const selectedRepo = ${{ toJSON(github.event.inputs.repo) }} ?? ''; const allPythonRepos = [ - 'AudioXBlock', - 'completion', - 'course-discovery', - 'credentials', - 'credentials-themes', - 'DoneXBlock', - 'edx-ace', - 'edx-bulk-grades', - 'edx-ora2', - 'edx-proctoring', - 'FeedbackXBlock', - 'RecommenderXBlock', - 'xblock-drag-and-drop-v2', - 'xblock-free-text-response', - 'xblock-google-drive', - 'xblock-image-explorer', - 'xblock-image-modal', - 'xblock-lti-consumer', - 'xblock-qualtrics-survey', - 'xblock-sql-grader', - 'xblock-submit-and-compare', + // 'AudioXBlock', + // 'completion', + // 'course-discovery', + // 'credentials', + // 'credentials-themes', + // 'DoneXBlock', + 'ecommerce', + // 'edx-ace', + // 'edx-bulk-grades', + // 'edx-ora2', + // 'edx-proctoring', + // 'FeedbackXBlock', + // 'RecommenderXBlock', + // 'xblock-drag-and-drop-v2', + // 'xblock-free-text-response', + // 'xblock-google-drive', + // 'xblock-image-explorer', + // 'xblock-image-modal', + // 'xblock-lti-consumer', + // 'xblock-qualtrics-survey', + // 'xblock-sql-grader', + // 'xblock-submit-and-compare', ]; const allJavascriptRepos = [ @@ -209,7 +210,8 @@ jobs: cd translations/${{ matrix.repo }} # finds the directory containing the english locale usually located in # */*/conf/locale/en - EN_DIR=$(find . -type d -regex ".+conf\/locale\/en$") + # but also exclude any hidden directories that might exist for some reason + EN_DIR=$(find . -type d -not -path '*/.*' -regex ".+conf\/locale\/en$") # If the directory is not found, exit with an error. This can happen if we add a repository that doesn't # comply with OEP-58, or it still doesn't have any translations yet if [ -z "$EN_DIR" ]; then