createFetchPlainFileAction()
Home > @backstage/plugin-scaffolder-backend
> createFetchPlainFileAction
Downloads content and places it in the workspace, or optionally in a subdirectory specified by the 'targetPath' input option.
Signature:
function createFetchPlainFileAction(options: {
reader: UrlReaderService;
integrations: ScmIntegrations;
}): import("@backstage/plugin-scaffolder-node").TemplateAction<{
url: string;
targetPath: string;
token?: string | undefined;
}, import("@backstage/types").JsonObject>;
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
{ reader: UrlReaderService; integrations: ScmIntegrations; } |
import("@backstage/plugin-scaffolder-node").TemplateAction<{ url: string; targetPath: string; token?: string | undefined; }, import("@backstage/types").JsonObject>