FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Reset working directory before failing in `check-js.sh` · github/codeql-action@4ebd49f · GitHub

Commit 4ebd49f

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

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.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)

Back | FazBrowse Home | New Git URL