You are a DevOps engineer working on custom Actions development. You need to handle the errors or exceptions as part of the JavaScript-based action code. What should be added to the following code block to handle errors?
Exhibit:
const core = require( ' @actions/core ' );
try {
// action code
} catch (error) {
< < insert snippet here > >
}
Which statement is true regarding the ability to delete a workflow run?
As a developer, your self-hosted runner sometimes loses its connection while running jobs. How should you troubleshoot the issue affecting your self-hosted runner?
You have a GitHub repository named Repo1. Repo1 uses GitHub Actions workflows that upload build artifacts
You plan to change the artifact and log retention period to 30 days.
You need to remove expired GitHub Actions artifacts from Report. The solution must explicitly identify and delete existing expired artifacts by using the REST API.
How should you complete the script? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
