← All procedures

gh.run.rerun

Run a workflow run again

CLI
Package
@procedures/gh · README
Path
["gh","run","rerun"]
CLI
mark gh run rerun --run <integer>
As data
{"$proc":["gh","run","rerun"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/gh/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["gh","run","rerun"], { run: 1 });
console.log(JSON.stringify(result));

From the command line

$ mark gh run rerun --run <integer>

As data, in a program

{ "$proc": ["gh", "run", "rerun"], "input": { "run": 1 } }

Input

FieldTypeRequiredDefaultDescription
repostringnoThe repository as owner/name (default: the repository of the folder)
cwdstringnoThe folder where gh runs
timeoutMsintegernoThe time limit of the command, in milliseconds
runintegeryesThe id of the run
failedOnlybooleannoOnly the jobs that failed

Output

FieldTypeRequiredDefaultDescription
runnumberyesThe id of the run
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "repo": {
        "description": "The repository as owner/name (default: the repository of the folder)",
        "type": "string",
        "pattern": "^[\\w.-]+\\/[\\w.-]+$"
      },
      "cwd": {
        "description": "The folder where gh runs",
        "type": "string"
      },
      "timeoutMs": {
        "description": "The time limit of the command, in milliseconds",
        "type": "integer",
        "minimum": 1,
        "maximum": 9007199254740991
      },
      "run": {
        "type": "integer",
        "minimum": 1,
        "maximum": 9007199254740991,
        "description": "The id of the run"
      },
      "failedOnly": {
        "description": "Only the jobs that failed",
        "type": "boolean"
      }
    },
    "required": [
      "run"
    ]
  },
  "output": {
    "type": "object",
    "properties": {
      "run": {
        "type": "number",
        "description": "The id of the run"
      }
    },
    "required": [
      "run"
    ],
    "additionalProperties": false
  }
}