CICD-199 · Raise a targeted file annotation
Encyclopedia · CI diagnostics and evidence · All snippets
Previous · CICD-198 · Next · CICD-200
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites authorized fixture run and sanitized evidence location.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
printf '::error file=pyproject.toml,line=1::Configuration check failed\n'
exit 13. How it works
The workflow command creates a file-scoped error annotation. exit 1 separately marks the job step as failed.
4. Verify the result
A rendered annotation identifies location. The shell exit status separately fails the job.
Validation syntax-validated (Bash parse). Status definitions.