Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandgrandRealMe committed Oct 28, 2024
1 parent 468e07c commit 0f312cd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ jobs:
STRUCTURE=$(tree -I 'node_modules|.git|.github|.idea' --noreport)
# Check if the project structure has changed
if ! git diff --exit-code --quiet README.md; then
if ! git diff --exit-code --quiet -- README.md; then
# Update the README.md file
sed -i "s|## 📁 Project Structure.*|## 📁 Project Structure\n\n\`\`\`sh\n$STRUCTURE\n\`\`\`|" README.md
echo "## 📁 Project Structure" > README.md
echo "" >> README.md
echo "```sh" >> README.md
echo "$STRUCTURE" >> README.md
echo "```" >> README.md
# Commit the changes
git add README.md
Expand Down

0 comments on commit 0f312cd

Please sign in to comment.