(client *api.Client, repo ghrepo.Interface, runID string)
| 139 | } |
| 140 | |
| 141 | func deleteWorkflowRun(client *api.Client, repo ghrepo.Interface, runID string) error { |
| 142 | path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "actions", "runs", runID) |
| 143 | if err != nil { |
| 144 | return err |
| 145 | } |
| 146 | err = client.REST(repo.RepoHost(), "DELETE", path.String(), nil, nil) |
| 147 | if err != nil { |
| 148 | return err |
| 149 | } |
| 150 | return nil |
| 151 | } |