createFetchTemplateFileAction()
Home > @backstage/plugin-scaffolder-backend > createFetchTemplateFileAction
Downloads a single file and templates variables into file. Then places the result in the workspace, or optionally in a subdirectory specified by the 'targetPath' input option.
Signature:
function createFetchTemplateFileAction(options: {
    reader: UrlReaderService;
    integrations: ScmIntegrations;
    additionalTemplateFilters?: Record<string, TemplateFilter>;
    additionalTemplateGlobals?: Record<string, TemplateGlobal>;
}): import("@backstage/plugin-scaffolder-node").TemplateAction<{
    url: string;
    targetPath: string;
    values?: Record<string, any> | undefined;
    cookiecutterCompat?: boolean | undefined;
    replace?: boolean | undefined;
    trimBlocks?: boolean | undefined;
    lstripBlocks?: boolean | undefined;
    token?: string | undefined;
}, {
    [x: string]: any;
}, "v2">;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| options | { reader: UrlReaderService; integrations: ScmIntegrations; additionalTemplateFilters?: Record<string, TemplateFilter>; additionalTemplateGlobals?: Record<string, TemplateGlobal>; } | 
import("@backstage/plugin-scaffolder-node").TemplateAction<{ url: string; targetPath: string; values?: Record<string, any> | undefined; cookiecutterCompat?: boolean | undefined; replace?: boolean | undefined; trimBlocks?: boolean | undefined; lstripBlocks?: boolean | undefined; token?: string | undefined; }, { [x: string]: any; }, "v2">