diff options
| author | Tero Marttila <[email protected]> | 2022-06-24 12:26:53 +0300 |
|---|---|---|
| committer | Tero Marttila <[email protected]> | 2022-06-24 12:31:15 +0300 |
| commit | c09c90d0a931888862262a6ed3753eed0af4ddca (patch) | |
| tree | 7fd5e03dbd733ea62ae20ed0f770a1befa2265ad | |
| parent | b06e86edc27e2f138fa0e073d161bdb61df973dc (diff) | |
github actions: experiment with workflow error commands
| -rwxr-xr-x | .github/workflow-scripts/check-gofmt.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflow-scripts/check-gofmt.sh b/.github/workflow-scripts/check-gofmt.sh index 0a65b81..4e5122a 100755 --- a/.github/workflow-scripts/check-gofmt.sh +++ b/.github/workflow-scripts/check-gofmt.sh @@ -6,6 +6,10 @@ fmt_list="$(gofmt -l "$@")" if [ -n "$fmt_list" ]; then echo "Check gofmt failed: " >&2 - echo "${fmt_list}" | sed -e 's/^/\t/' >&2 + + for file in "$fmt_list"; do + echo "::error file=${file},title=gofmt::gofmt check failed" + echo "\t$file" >&2 + done exit 1 fi |
