rerunWorkflowRun method

Future<void> rerunWorkflowRun(
  1. String owner,
  2. String repo,
  3. int runId
)

Reruns a workflow run.

owner is the username of the repository owner. repo is the name of the repository. runId is the ID of the workflow run to rerun.

Throws a GitHubException if the rerun fails.

Implementation

Future<void> rerunWorkflowRun(String owner, String repo, int runId) async {
  await _sendRequest('POST', 'repos/$owner/$repo/actions/runs/$runId/rerun');
}