ログのグループ化とは?
ログのグループ化は、step が出力ブロックの開始と終了を名前付きでマークし、CI がそれを折りたたみ可能なセクションとしてレンダリングする機能です。冗長な出力は、閲覧者が展開するまで邪魔にならない場所に置かれます。これにより、詳細を捨てることなく、長くノイズの多いログをナビゲート可能に保ちます。
なぜ重要か
1 つの job が数千行のログを出力することがあり、重要な数行が埋もれてしまいます。グループ化により、読み手はセクションの見出しをざっと見て、失敗したものだけを展開できます。これは workflow command で実装されるため、どのスクリプトでも自身の出力を構造化できます。
関連ガイド
What Is a Workflow Command?A workflow command is a specially formatted log line a step prints to instruct the runner to set output, mask…
What Is a CI Annotation?A CI annotation is a structured message attached to a workflow run or specific file and line, surfacing an er…
What Is CI Debug Logging?CI debug logging is a verbose mode, toggled by a setting, that makes the runner and actions emit extra diagno…