Skip to content

Commit

Permalink
Merge pull request #14 from Wambaborel/ci_cd
Browse files Browse the repository at this point in the history
Fixed the entire syntax of the workflow
  • Loading branch information
Wambaforestin authored Nov 29, 2024
2 parents 012bc5d + 0e3770c commit f20cba0
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI/CD Workflow
on:
push:
branches:
- main # Changed to "main" branch
- main # Ensure this matches your default branch

jobs:
build:
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.7'
python-version: '3.12.7'

# Step 3: Install dependencies for each project in the root directory
- name: Install dependencies for each project
Expand Down Expand Up @@ -51,25 +51,22 @@ jobs:
readme_file="$dir/README.md"
# Create a README file with documentation
cat <<EOL > "$readme_file"
# $project_name
## Description
This is the README for the $project_name project.
## Installation
To install the dependencies, run the following command:
\`\`\`bash
pip install -r requirements.txt
\`\`\`
## Usage
Instructions for using the $project_name project go here.
---
*📄 This README was automatically generated by the CI/CD workflow. 🤖*
EOL
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 "" >> "$readme_file"
echo "---" >> "$readme_file"
echo "*📄 This README was automatically generated by the CI/CD workflow. 🤖*" >> "$readme_file"
echo "Generated README for $project_name"
done

0 comments on commit f20cba0

Please sign in to comment.