Skip to content

Commit dc9ec9c

Browse files
fix output
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
1 parent 8002852 commit dc9ec9c

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/dev_module_build.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)