From 0f312cd530317f162b2b79b89dac7496357da3cd Mon Sep 17 00:00:00 2001 From: BrandgrandRealMe Date: Mon, 28 Oct 2024 12:42:49 -0500 Subject: [PATCH] Fix? --- .github/workflows/update-readme.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index edb38780..feeccbd3 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -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