UNPKG

@backstage-community/plugin-scaffolder-backend-module-annotator

Version:

The annotator module for @backstage/plugin-scaffolder-backend

41 lines (35 loc) 1.2 kB
'use strict'; var yaml = require('yaml'); function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; } var yaml__default = /*#__PURE__*/_interopDefaultCompat(yaml); const examples = [ { description: "Template Example for annotating a catalog entity with the version of the scaffolder template", example: yaml__default.default.stringify({ steps: [ { action: "catalog:template:version", name: "Annotate catalog-info.yaml with the version of the scaffolder template." } ] }) }, { description: "Template Example for annotating a catalog entity with the version of the scaffolder template as input", example: yaml__default.default.stringify({ steps: [ { action: "catalog:template:version", name: "Annotate catalog-info.yaml with the version of the scaffolder template.", input: { annotations: { "backstage.io/template-version": "templateVersionParameterValue" } } } ] }) } ]; exports.examples = examples; //# sourceMappingURL=createVersionAction.examples.cjs.js.map