Skip to content

Commit

Permalink
[github] update API to support rerun-failed-jobs (#61)
Browse files Browse the repository at this point in the history
Cherry-picked the `rerun-failed-jobs` action from an up-to-date spec.
I did not include the `enable_debug_logging` parameter has it was not
currently present with the existing `re_run_workflow` endpoint.

re-run on failed job doc: https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#re-run-failed-jobs-from-a-workflow-run
Generated diff after `make github`: https://gist.github.com/chantra/c30751e00fe6034a4ace4ac73646afc6#file-gist-diff-L702
  • Loading branch information
chantra authored Mar 10, 2023
1 parent 5480bb8 commit 979f81b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions specs/github/api.github.com.json
Original file line number Diff line number Diff line change
Expand Up @@ -19505,6 +19505,52 @@
}
}
},
"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs": {
"post": {
"summary": "Re-run failed jobs from a workflow run",
"description": "Re-run all of the failed jobs and their dependent jobs in a workflow run using the `id` of the workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint.",
"tags": [
"actions"
],
"operationId": "actions/re-run-workflow-failed-jobs",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/actions#re-run-workflow-failed-jobs"
},
"parameters": [
{
"$ref": "#/components/parameters/owner"
},
{
"$ref": "#/components/parameters/repo"
},
{
"$ref": "#/components/parameters/run-id"
}
],
"responses": {
"201": {
"description": "Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
},
"additionalProperties": false
}
}
}
}
},
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
"category": "actions",
"subcategory": "workflow-runs"
}
}
},
"/repos/{owner}/{repo}/actions/runs/{run_id}/timing": {
"get": {
"summary": "Get workflow run usage",
Expand Down

0 comments on commit 979f81b

Please sign in to comment.