diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index f804abd..ba3bf7a 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -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: @@ -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 @@ -51,25 +51,22 @@ jobs: readme_file="$dir/README.md" # Create a README file with documentation - cat < "$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