Skip to content

Commit a602104

Browse files
committed
ci: retain the useful failure tail
1 parent d9bd2ac commit a602104

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
run: |
2424
if ! test_output=$(go test -timeout 5m ./... 2>&1); then
2525
printf '%s\n' "$test_output"
26-
annotation=${test_output//'%'/'%25'}
26+
annotation=$(printf '%s\n' "$test_output" | tail -80)
27+
annotation=${annotation//'%'/'%25'}
2728
annotation=${annotation//$'\r'/'%0D'}
2829
annotation=${annotation//$'\n'/'%0A'}
2930
echo "::error title=go test failed::$annotation"

0 commit comments

Comments
 (0)