fix: manually overwrite execute-brain.md (#54208)

This commit is contained in:
Naomi
2024-03-25 10:55:25 -07:00
committed by GitHub
parent cc87f4455d
commit fd88821919
2 changed files with 16 additions and 0 deletions

View File

@@ -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

13
tools/scripts/move-bf.sh Executable file
View File

@@ -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