From d3cfdb9ddd4e72ce2b81d34bb8182ddd09058535 Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 3 Jun 2024 04:29:38 -0400 Subject: [PATCH] feat(tools): automatically lowercase directories (#53729) --- .github/workflows/crowdin-download.client-ui.yml | 8 ++++++++ .github/workflows/crowdin-download.curriculum.yml | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/crowdin-download.client-ui.yml b/.github/workflows/crowdin-download.client-ui.yml index e94c9da2219..9b04b255b4e 100644 --- a/.github/workflows/crowdin-download.client-ui.yml +++ b/.github/workflows/crowdin-download.client-ui.yml @@ -328,6 +328,14 @@ jobs: sudo chown -R $(whoami): client/i18n/locales npx --yes prettier --write client/i18n/locales/**/*.json + ###### Lowercase directory names ##### + + - name: Lowercase Directories + uses: freecodecamp/crowdin-action@main + env: + PLUGIN: 'lowercase-directories' + FILE_PATH: 'client/i18n/locales' + # Crowdin translators might have the directories # Create Commit - name: Commit Changes uses: freecodecamp/crowdin-action@main diff --git a/.github/workflows/crowdin-download.curriculum.yml b/.github/workflows/crowdin-download.curriculum.yml index c19ef4d60f0..59812ab9647 100644 --- a/.github/workflows/crowdin-download.curriculum.yml +++ b/.github/workflows/crowdin-download.curriculum.yml @@ -362,6 +362,13 @@ jobs: pnpm run build:server # We do not need to run tests because they are run after the PR is created. + ###### Lowercase directory names ##### + + - name: Lowercase Directories + uses: freecodecamp/crowdin-action@main + env: + PLUGIN: 'lowercase-directories' + FILE_PATH: 'curriculum/challenges' - name: Overwrite Execute-Brain.md run: sudo tools/scripts/move-bf.sh