Highlight a non-fatal issue in the run log.

Section: Debug logging and log structure

Emit a warning annotation

bash
bash
echo "::warning file=package.json,line=1::Deprecated config detected"
Explanation

Annotations make important issues much easier to spot in long logs.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Debug logging and log structure
Emit a notice annotation
Add an informational annotation to the run log.
OpenIn sheetbashsame section
Emit an error annotation
Mark a step error with file context.
OpenIn sheetbashsame section
Create a collapsible log group
Group related output in the Actions log.
OpenIn sheetbashsame section
Write a markdown step summary
Add a rich markdown summary to the workflow run.
OpenIn sheetbashsame section
Use strict Bash mode
Fail fast in shell scripts.
Inspect the raw event payload
Dump the event JSON file path or contents for debugging.