-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
octokit.rest.actions.retryWorkflow()
. Deprecates `octokit.res…
…t.actions.reRunWorkflow()` (#453)
- Loading branch information
1 parent
f27909a
commit 2e41527
Showing
8 changed files
with
17,394 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: Retry a workflow | ||
example: octokit.rest.actions.retryWorkflow({ owner, repo, run_id }) | ||
route: POST /repos/{owner}/{repo}/actions/runs/{run_id}/retry | ||
scope: actions | ||
type: API method | ||
--- | ||
|
||
# Retry a workflow | ||
|
||
Retry your workflow run using its `id`. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. | ||
|
||
```js | ||
octokit.rest.actions.retryWorkflow({ | ||
owner, | ||
repo, | ||
run_id, | ||
}); | ||
``` | ||
|
||
## Parameters | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>name</th> | ||
<th>required</th> | ||
<th>description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr><td>owner</td><td>yes</td><td> | ||
|
||
</td></tr> | ||
<tr><td>repo</td><td>yes</td><td> | ||
|
||
</td></tr> | ||
<tr><td>run_id</td><td>yes</td><td> | ||
|
||
The id of the workflow run. | ||
|
||
</td></tr> | ||
</tbody> | ||
</table> | ||
|
||
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/reference/actions#retry-a-workflow). |
Oops, something went wrong.