Reset working directory before failing in check-js.sh

This commit is contained in:
Michael B. Gale
2025-09-25 13:16:03 +01:00
parent 9cf3a96f63
commit b4db1860cd

View File

@@ -23,6 +23,11 @@ if [ ! -z "$(git status --porcelain)" ]; then
git diff --output="$RUNNER_TEMP/js.diff"
cat "$RUNNER_TEMP/js.diff" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
# Reset bundled files to allow other checks to test for changes
git checkout lib
# Fail this check
exit 1
fi
echo "Success: JavaScript files are up to date"