mirror of
https://github.com/github/codeql-action.git
synced 2026-01-04 13:40:23 +08:00
Reset working directory before failing in check-js.sh
This commit is contained in:
5
.github/workflows/script/check-js.sh
vendored
5
.github/workflows/script/check-js.sh
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user