Skip to content

Commit d5ead24

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

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/linters.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,20 @@ 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 && true
108+
EXIT_CODE="$?"
109+
if [ "$EXIT_CODE" != "0" ]
110+
then
111+
echo
112+
echo 'ERROR: The JavaScript lint validation failed (the errors are logged above).'
113+
echo ' Please fix the lint errors.'
114+
echo ' Run:'
115+
echo ' make lint-js-fix'
116+
echo ' to fix the auto-fixable lint issues.'
117+
echo
118+
exit "$EXIT_CODE"
119+
fi
107120
- name: Get release version numbers
108121
if: ${{ github.event.pull_request && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch }}
109122
id: get-released-versions

0 commit comments

Comments
 (0)