File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 94
94
95
95
echo " ----------------------------------------------------------------"
96
96
97
+ EXITCODE=0
98
+
97
99
# shellcheck disable=SC2086
98
100
if [ -n " $INPUT_OUTPUT_FILE " ]; then
99
101
pyspelling --verbose --config " $SPELLCHECK_CONFIG_FILE " $TASK_NAME $SOURCES_LIST | tee " $INPUT_OUTPUT_FILE "
102
+ EXITCODE=${PIPESTATUS[0]}
100
103
else
101
104
pyspelling --verbose --config " $SPELLCHECK_CONFIG_FILE " $TASK_NAME $SOURCES_LIST
105
+ EXITCODE=$?
102
106
fi
103
107
108
+ test " $EXITCODE " -gt 1 && echo " ::error title=Spelling check::Spelling check action failed, please check diagnostics" ;
104
109
110
+ test " $EXITCODE " -eq 1 && echo " ::error title=Spelling errors::Files in repository contain spelling errors" ;
105
111
106
- EXITCODE=$?
107
-
108
- test $EXITCODE -gt 1 && echo " ::error title=Spelling check::Spelling check action failed, please check diagnostics" ;
109
-
110
- test $EXITCODE -eq 1 && echo " ::error title=Spelling errors::Files in repository contain spelling errors" ;
111
-
112
- exit $EXITCODE
112
+ exit " $EXITCODE "
You can’t perform that action at this time.
0 commit comments