Skip to content

Commit 27406fd

Browse files
committed
Reset working directory before failing in check-js.sh
1 parent 1b3a5c6 commit 27406fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ if [ ! -z "$(git status --porcelain)" ]; then
2222
git diff --output="$RUNNER_TEMP/js.diff"
2323
cat "$RUNNER_TEMP/js.diff" >> $GITHUB_STEP_SUMMARY
2424
echo '```' >> $GITHUB_STEP_SUMMARY
25+
26+
# Reset transpiled and bundled files to allow other checks to test for changes
27+
git checkout build lib
28+
29+
# Fail this check
2530
exit 1
2631
fi
2732
echo "Success: JavaScript files are up to date"

0 commit comments

Comments
 (0)