> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Re-run failed GitHub workflow jobs

> Re-run failed jobs and their dependent GitHub Actions jobs.

`github.rerunFailedWorkflowJobs` creates another attempt for failed jobs and jobs that depend on them.

```ts automations/rerun-failed-github-jobs.automation.ts theme={null}
import { automation } from "automate.ax"
import { github } from "automate.ax/github"

export default automation("Retry failed GitHub jobs", () => {
  github.rerunFailedWorkflowJobs({
    owner: "SentsCo",
    repository: "automate.ax",
    runId: 123456789,
  })
})
```

Provide the repository and completed `runId`. Optional `enableDebugLogging` enables runner diagnostic logs. Returns `{}` after GitHub accepts the request. Successful independent jobs are not repeated. Requires Actions write permission.
