createGithubActionsDispatchAction()
Home > @backstage/plugin-scaffolder-backend-module-github
> createGithubActionsDispatchAction
Creates a new action that dispatches a GitHub Action workflow for a given branch or tag.
Signature:
function createGithubActionsDispatchAction(options: {
integrations: ScmIntegrations;
githubCredentialsProvider?: GithubCredentialsProvider;
}): import("@backstage/plugin-scaffolder-node").TemplateAction<{
repoUrl: string;
workflowId: string;
branchOrTagName: string;
workflowInputs?: Record<string, string> | undefined;
token?: string | undefined;
}, {
[x: string]: any;
}, "v2">;
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
{ integrations: ScmIntegrations; githubCredentialsProvider?: GithubCredentialsProvider; } |
import("@backstage/plugin-scaffolder-node").TemplateAction<{ repoUrl: string; workflowId: string; branchOrTagName: string; workflowInputs?: Record<string, string> | undefined; token?: string | undefined; }, { [x: string]: any; }, "v2">