Skip to content

Commit 979f81b

Browse files
authored
[github] update API to support rerun-failed-jobs (#61)
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
1 parent 5480bb8 commit 979f81b

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

specs/github/api.github.com.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19505,6 +19505,52 @@
1950519505
}
1950619506
}
1950719507
},
19508+
"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs": {
19509+
"post": {
19510+
"summary": "Re-run failed jobs from a workflow run",
19511+
"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.",
19512+
"tags": [
19513+
"actions"
19514+
],
19515+
"operationId": "actions/re-run-workflow-failed-jobs",
19516+
"externalDocs": {
19517+
"description": "API method documentation",
19518+
"url": "https://docs.github.com/rest/reference/actions#re-run-workflow-failed-jobs"
19519+
},
19520+
"parameters": [
19521+
{
19522+
"$ref": "#/components/parameters/owner"
19523+
},
19524+
{
19525+
"$ref": "#/components/parameters/repo"
19526+
},
19527+
{
19528+
"$ref": "#/components/parameters/run-id"
19529+
}
19530+
],
19531+
"responses": {
19532+
"201": {
19533+
"description": "Response",
19534+
"content": {
19535+
"application/json": {
19536+
"schema": {
19537+
"type": "object",
19538+
"properties": {
19539+
},
19540+
"additionalProperties": false
19541+
}
19542+
}
19543+
}
19544+
}
19545+
},
19546+
"x-github": {
19547+
"githubCloudOnly": false,
19548+
"enabledForGitHubApps": true,
19549+
"category": "actions",
19550+
"subcategory": "workflow-runs"
19551+
}
19552+
}
19553+
},
1950819554
"/repos/{owner}/{repo}/actions/runs/{run_id}/timing": {
1950919555
"get": {
1951019556
"summary": "Get workflow run usage",

0 commit comments

Comments
 (0)