We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 734497a commit 7ba9773Copy full SHA for 7ba9773
.github/workflows/lint.yml
@@ -45,12 +45,11 @@ jobs:
45
assert-nothing-changed go fmt ./...
46
assert-nothing-changed go mod tidy
47
48
- bin/golangci-lint run --out-format tab --issues-exit-code 0 | while read -r loc linter msg; do
49
- line="${loc#*:}"
50
- printf '::warning file=%s,line=%s,col=%s::%s\n' \
51
- "${loc%%:*}" "${line%%:*}" "${loc##*:}" \
52
- "[$linter] $msg"
53
- done
+ while read -r file linter msg; do
+ IFS=: read -ra f <<<"$file"
+ printf '::error file=%s,line=%s,col=%s::%s\n' "${f[0]}" "${f[1]}" "${f[2]}" "[$linter] $msg"
+ STATUS=1
+ done < <(bin/golangci-lint run --out-format tab)
54
55
exit $STATUS
56
0 commit comments