Skip to content

Commit bb6be1d

Browse files
author
yuxuanj
committed
update git diff check
1 parent 0bafc1d commit bb6be1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/commit-llms-txt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646
cp .artifact/src/pages/llms.txt src/pages/llms.txt
4747
rm -rf .artifact
4848
49-
if git diff --quiet src/pages/llms.txt 2>/dev/null; then
49+
git add src/pages/llms.txt
50+
if git diff --staged --quiet; then
5051
echo "No changes to llms.txt, skipping commit."
5152
exit 0
5253
fi
5354
5455
git config user.name "github-actions[bot]"
5556
git config user.email "github-actions[bot]@users.noreply.github.com"
56-
git add src/pages/llms.txt
5757
git commit -m "auto-generate llms.txt"
5858
git push

0 commit comments

Comments
 (0)