Skip to content

Commit 4ebd49f

Browse files
committed
Reset working directory before failing in check-js.sh
1 parent 6d8d7f9 commit 4ebd49f

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
@@ -23,6 +23,11 @@ if [ ! -z "$(git status --porcelain)" ]; then
2323
git diff --output="$RUNNER_TEMP/js.diff"
2424
cat "$RUNNER_TEMP/js.diff" >> $GITHUB_STEP_SUMMARY
2525
echo '```' >> $GITHUB_STEP_SUMMARY
26+
27+
# Reset bundled files to allow other checks to test for changes
28+
git checkout lib
29+
30+
# Fail this check
2631
exit 1
2732
fi
2833
echo "Success: JavaScript files are up to date"

0 commit comments

Comments
 (0)