From fd8882191903d3c1a65dadf0e5be1a887ac8dfd2 Mon Sep 17 00:00:00 2001 From: Naomi Date: Mon, 25 Mar 2024 10:55:25 -0700 Subject: [PATCH] fix: manually overwrite execute-brain.md (#54208) --- .github/workflows/crowdin-download.curriculum.yml | 3 +++ tools/scripts/move-bf.sh | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100755 tools/scripts/move-bf.sh diff --git a/.github/workflows/crowdin-download.curriculum.yml b/.github/workflows/crowdin-download.curriculum.yml index c6e5e24a6d3..9004d1ca250 100644 --- a/.github/workflows/crowdin-download.curriculum.yml +++ b/.github/workflows/crowdin-download.curriculum.yml @@ -363,6 +363,9 @@ jobs: # We do not need to run tests because they are run after the PR is created. + - name: Overwrite Execute-Brain.md + run: tools/scripts/execute-brain.sh + # Create Commit - name: Commit Changes uses: freecodecamp/crowdin-action@main diff --git a/tools/scripts/move-bf.sh b/tools/scripts/move-bf.sh new file mode 100755 index 00000000000..c00a6bfb1d6 --- /dev/null +++ b/tools/scripts/move-bf.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Define the source file +source_file="curriculum/challenges/english/22-rosetta-code/rosetta-code-challenges/execute-brain.md" + +# Define the destination directory +destination_dir="curriculum/challenges" + +# Loop through all directories except _meta and english +for dir in $(find "$destination_dir" -mindepth 1 -maxdepth 1 -type d ! -name '_meta' ! -name 'english'); do + # Copy the file to each directory + cp "$source_file" "$dir/22-rosetta-code/rosetta-code-challenges/" +done