Open Context Protocol is live! 🚀 Read the launch post
actionsReRunJobForWorkflowRun

actionsReRunJobForWorkflowRun

Re-run a job from a workflow run

Details

  • Method: POST
  • Path: /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun
  • Operation ID: actions/re-run-job-for-workflow-run

Parameters

{
  "owner": {
    "description": "The account owner of the repository. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "repo": {
    "description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "job_id": {
    "description": "The unique identifier of the job.",
    "required": true,
    "location": "path",
    "type": "integer"
  },
  "enable_debug_logging": {
    "description": "Whether to enable debug logging for the re-run.",
    "required": false,
    "location": "body",
    "type": "boolean"
  }
}

Response Schema

{
  "title": "Empty Object",
  "description": "An object without any properties.",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('github')

# Call this tool
result = await agent.call_tool('actionsReRunJobForWorkflowRun', {
    # Add required parameters here
})