Skip to content

Commit fc977f3

Browse files
committed
Print full diff in compile check
1 parent 1b8f0ff commit fc977f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/script/check-js.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ rm -rf lib
1212
# Generate the JavaScript files
1313
npm run-script build
1414
# Check that repo is still clean
15-
if [ ! -z "$(git status --porcelain)" ]; then
15+
git add -N .
16+
if ! git diff --exit-code; then
1617
# If we get a fail here then the PR needs attention
1718
>&2 echo "Failed: JavaScript files are not up to date. Run 'rm -rf lib && npm run-script build' to update"
1819
git status

0 commit comments

Comments
 (0)