File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,25 +205,23 @@ jobs:
205205 find_errors=0
206206 cd "$dir" || { echo "::error::Failed to access directory $dir"; continue; }
207207
208- if ! output=$(golangci-lint run --sort-results) ; then
208+ if ! output=$(golangci-lint run --sort-results); then
209209 error_count=$(( error_count + 1 ))
210- find_errors=$(( find_errors + 1 ))
211- echo "Error code $?"
210+ # find_errors=$(( find_errors + 1 ))
212211 echo "::group::📂 Linting directory ❌: $dir"
212+ echo -e "❌ Errors:\n$output\n"
213213 else
214214 echo "::group::📂 Linting directory ✅: $dir"
215+ echo -e "✅ All check passed\n"
215216 fi
216217
217- # TODO output
218- # report_out_error=$(echo $output)
219-
220- cd - &>/dev/null
218+ # if [ $find_errors -ne 0 ]; then
219+ # echo -e "❌ Errors:\n$output\n"
220+ # else
221+ # echo -e "✅ All check passed\n"
222+ # fi
221223
222- if [ $find_errors -ne 0 ]; then
223- echo -e "❌ Errors:\n$output\n"
224- else
225- echo -e "✅ All check passed\n"
226- fi
224+ cd - &>/dev/null
227225
228226 echo "::endgroup::"
229227 done
You can’t perform that action at this time.
0 commit comments