UNPKG

github-actions-enhanced-dispatch

Version:

Enhanced workflow_dispatch & respository dispatch event trriggers for GitHub Actions

27 lines (21 loc) 982 B
import { Endpoints } from "@octokit/types"; export type WorkflowRun = { id: string | number; status: string | null; conclusion: string | null; }; export type Inputs = { [key: string]: object; }; export type GetWorkflowRunResponse = Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}"]["response"]; export type GetWorkflowRunParams = Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}"]["parameters"]; export type TriggerWorkflowDispatchParams = Endpoints["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"]["parameters"]; export type TriggerWorkflowDispatchResponse = Endpoints["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"]["response"]; export type ListWorkflowRunsParams = Endpoints["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"]["parameters"]; export type ListWorkflowRunsResponse = Endpoints["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"]["response"];