Skip to content

Commit fccf2cf

Browse files
authored
Update regenerate.yml
1 parent 949690d commit fccf2cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/regenerate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
rm -rf gitbook styles
2222
mv _book/* .
2323
git restore gitbook/gitbook-plugin-lunr/search-lunr.js # don't revert https://github.com/serde-rs/serde-rs.github.io/commit/1fd8104d5a16256279831dc90cb8f7a61b26ec58
24-
if ! git diff -U0 | grep -P '^[+-](?!\+\+)(?!--)' | grep -v -P '[+-]\s+gitbook\.page\.hasChanged'; then # Check if we have any diff *other* than lines starting with gitbook.page.hasChanged (which are just metadata)
24+
if ! git diff -U0 ':!search_index.json' | grep -P '^[+-](?!\+\+)(?!--)' | grep -v -P '[+-]\s+gitbook\.page\.hasChanged'; then # Check if we have any diff *other* than search_index.json and lines starting with gitbook.page.hasChanged (which are just metadata)
2525
echo No content changes, resetting to prevent a commit
2626
git reset --hard
2727
fi

0 commit comments

Comments
 (0)