Get job logs
Get Job Logs is a powerful GitHub tool designed to download logs for specific workflow jobs or to retrieve all failed job logs from a workflow run efficiently. It streamlines the debugging process by providing easy access to detailed workflow job logs.
Features
- Download logs for a specific GitHub workflow job using its unique job ID.
- Option to retrieve logs for all failed jobs in a particular workflow run by specifying run ID and failed_only flag.
- Ability to return actual log content directly, rather than just URLs to the logs.
- Customizable log retrieval with options to specify the number of tail lines to capture the most relevant log output.
- Supports repository owner and repository name inputs to target logs across different GitHub repositories.
Benefits
- Speeds up troubleshooting by providing quick access to failed job logs in continuous integration workflows.
- Improves developer productivity by automating log retrieval, reducing manual search effort.
- Offers flexible log output options to suit various debugging needs, including partial log views.
- Enhances visibility into workflow job execution, facilitating better issue diagnosis and resolution.
- Supports integration into automated workflows to enable continuous monitoring and alerting based on job log data.
Description
Download logs for a specific workflow job or efficiently get all failed job logs for a workflow run
Parameters
7 parameters
| Name | Type | Description |
|---|---|---|
| failed_only | boolean | When true, gets logs for all failed jobs in run_id |
| job_id | number | The unique identifier of the workflow job (required for single job logs) |
| ownerrequired | string | Repository owner |
| reporequired | string | Repository name |
| return_content | boolean | Returns actual log content instead of URLs |
| run_id | number | Workflow run ID (required when using failed_only) |
| tail_lines | number | Number of lines to return from the end of the log |