Skip to content

Commit

Permalink
Merge pull request #362 from Kavya-24/hacktoberfest-2024-kavya
Browse files Browse the repository at this point in the history
Remove Update Readme Action=
  • Loading branch information
Kavya-24 authored Oct 2, 2024
2 parents 5bfb900 + 77efcfd commit dab1683
Show file tree
Hide file tree
Showing 2 changed files with 1,130 additions and 1,150 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/generate_project_tree_structure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,10 @@ jobs:
- name: Generate project tree structure
run: ./project_tree_directory_util.sh > project_tree_structure.txt


- name: Update README with project tree
run: |
# Define the identifier comment
IDENTIFIER="<!-- PROJECT_TREE_START -->"
END_IDENTIFIER="<!-- PROJECT_TREE_END -->"
# Remove old project tree section
sed -i.bak "/$IDENTIFIER/,/$END_IDENTIFIER/d" README.md
# Add new project tree section
echo "$IDENTIFIER" >> README.md
echo '<details close>' >> README.md
echo '<summary><h2 align="center">Project Tree Structure 📁</h2> </summary>' >> README.md
echo '```' >> README.md
cat project_tree_structure.txt >> README.md
echo '</details>' >> README.md
echo '</details>' >> README.md
echo "$END_IDENTIFIER" >> README.md
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add README.md project_tree_structure.txt
git commit -m "Update project tree structure in README" || echo "No changes to commit"
git add project_tree_structure.txt
git commit -m "Update project tree structure" || echo "No changes to commit"
git push
Loading

0 comments on commit dab1683

Please sign in to comment.