Merge pull request #30142 from backstage/blam/actions-cleanup/14

`scaffolder-backend`: last of the actions migrated, and removal of the old `TemplateAction` types
This commit is contained in:
Ben Lambert
2025-06-05 14:29:13 +02:00
committed by GitHub
31 changed files with 841 additions and 1045 deletions
@@ -12,22 +12,16 @@ import { createTemplateAction } from '@backstage/plugin-scaffolder-node';
export function createExampleAction() {
// For more information on how to define custom actions, see
// https://backstage.io/docs/features/software-templates/writing-custom-actions
return createTemplateAction<{
myParameter: string;
}>({
return createTemplateAction({
id: 'acme:example',
description: 'Runs an example action',
schema: {
input: {
type: 'object',
required: ['myParameter'],
properties: {
myParameter: {
title: 'An example parameter',
description: "This is an example parameter, don't set it to foo",
type: 'string',
},
},
myParameter: z =>
z.string({
description:
"This is an example parameter, don't set it to foo",
}),
},
},
async handler(ctx) {