Skip to content

Commit 6440824

Browse files
committed
Add transpiled JS to job summary if changed
1 parent 50935f5 commit 6440824

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ if [ ! -z "$(git status --porcelain)" ]; then
1616
# If we get a fail here then the PR needs attention
1717
>&2 echo "Failed: JavaScript files are not up to date. Run 'rm -rf lib && npm run-script build' to update"
1818
git status
19+
20+
echo "### Transpiled JS diff" >> $GITHUB_STEP_SUMMARY
21+
git diff --output="$RUNNER_TEMP/js.diff"
22+
cat "$RUNNER_TEMP/js.diff" >> $GITHUB_STEP_SUMMARY
1923
exit 1
2024
fi
2125
echo "Success: JavaScript files are up to date"

0 commit comments

Comments
 (0)