Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Wambaforestin committed Oct 28, 2024
2 parents d4b0cb2 + c10fbd0 commit 7195295
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.7'
python-version: '3.12.7' # Set your desired Python version

- name: Install dependencies for each subproject
run: |
Expand All @@ -32,3 +32,30 @@ jobs:
fi
fi
done
- name: Run README Generation
run: |
# Loop through each subproject directory to generate README files
for dir in projects/*; do
if [ -d "$dir" ]; then
project_name=$(basename "$dir")
readme_file="$dir/README.md"
# Create a README file with documentation
echo "# $project_name" > "$readme_file"
echo "" >> "$readme_file"
echo "## Description" >> "$readme_file"
echo "This is the README for the $project_name project." >> "$readme_file"
echo "" >> "$readme_file"
echo "## Installation" >> "$readme_file"
echo "To install the dependencies, run the following command:" >> "$readme_file"
echo "\`\`\`bash" >> "$readme_file"
echo "pip install -r requirements.txt" >> "$readme_file"
echo "\`\`\`" >> "$readme_file"
echo "" >> "$readme_file"
echo "## Usage" >> "$readme_file"
echo "Instructions for using the $project_name project go here." >> "$readme_file"
echo "Generated README for $project_name"
fi
done

0 comments on commit 7195295

Please sign in to comment.