Skip to content

Commit a41f333

Browse files
tools: add message on auto-fixting js lint issues in gh workflow
1 parent c8d5b39 commit a41f333

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/linters.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,22 @@ jobs:
103103
- name: Environment Information
104104
run: npx envinfo
105105
- name: Lint JavaScript files
106-
run: NODE=$(command -v node) make lint-js
106+
run: |
107+
NODE=$(command -v node) make lint-js
108+
EXIT_CODE="$?"
109+
if [ "$EXIT_CODE" != "0" ]
110+
then
111+
echo
112+
echo
113+
echo
114+
echo 'ERROR: The JavaScript lint validation failed (the errors are logged above).'
115+
echo ' Please fix the lint errors.'
116+
echo ' Run:'
117+
echo ' make lint-js-fix'
118+
echo ' to fix the auto-fixable lint issues.'
119+
echo
120+
exit "$EXIT_CODE"
121+
fi
107122
- name: Get release version numbers
108123
if: ${{ github.event.pull_request && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch }}
109124
id: get-released-versions

0 commit comments

Comments
 (0)