Skip to content

Commit 6df2345

Browse files
committed
fix: fixed workflow bug
1 parent eaaa4ce commit 6df2345

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/update-project-structure.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
run: |
2222
git config user.name "github-actions[bot]"
2323
git config user.email "github-actions[bot]@users.noreply.github.com"
24-
git add project_structure.txt
25-
git commit -m "chore: update project structure"
26-
git push
24+
25+
if [[ -n $(git status --porcelain) ]]; then
26+
git add project_structure.txt
27+
git commit -m "chore: update project structure"
28+
git push
29+
else
30+
echo "No changes to commit."
31+
fi

0 commit comments

Comments
 (0)