Skip to content

Commit

Permalink
docs: update the headings styling in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ritika-Agrawal811 committed Apr 16, 2024
1 parent b9db745 commit f6ed52e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/count_components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
- name: Count Components
run: |
#!/bin/bash
# Count folders in the repository
folders=$(find . -mindepth 2 -maxdepth 2 -type d -name '[A-Z]*' ! -path '*/.*' -exec sh -c 'dirname="{}"; parent_dir=$(basename "$(dirname "$dirname")"); echo "$parent_dir" | grep -q "^[A-Z]" && echo "{}"' \; | wc -l)
echo "folders=$folders" >> $GITHUB_ENV
# Count components in the repository
components=$(find . -mindepth 2 -maxdepth 2 -type d -name '[A-Z]*' ! -path '*/.*' -exec sh -c 'dirname="{}"; parent_dir=$(basename "$(dirname "$dirname")"); echo "$parent_dir" | grep -q "^[A-Z]" && echo "{}"' \; | wc -l)
echo "components=$components" >> $GITHUB_ENV
- name: Set Git user identity
run: |
git config --global user.email "ritikaagrawal339@gmail.com"
git config --global user.name "Ritika Agrawal"
- name: Update README
run: |
echo "Number of folders: ${{ env.folders }}" > temp_readme.md
echo "## ${{ env.components }} Components" > temp_readme.md
cat README.md >> temp_readme.md
mv temp_readme.md README.md
git add README.md
git commit -m "Update number of folders in README" || echo "No changes to commit"
git commit -m "Update number of components in README" || echo "No changes to commit"
git push
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A collection of real-life code snippets for every web development project. Each
![CSS3](https://img.shields.io/badge/CSS3-1572B6?style=for-the-badge&logo=CSS3&logoColor=white)
![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo=JavaScript&logoColor=white)

#### Categories :maple_leaf:
### Categories :maple_leaf:

This repository is divided into mentioned categories. You may navigate accordingly to find cool web components to add to your project!

Expand Down

0 comments on commit f6ed52e

Please sign in to comment.