Refer to parameter values in another repo
Published on October 28th, 2022Template
Actions used
You can check the available actions if you visit /create/actions.
---
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
  name: global-param-example
  title: Example of sourcing params from a constant
spec:
  owner: roadie
  type: service
  parameters:
    - $yaml: ./constants/products.yaml
  steps:
    - id: log-message
      name: List selected product
      action: debug:log
      input:
        message: 'Selected product: ${{ parameters.product }}'./constants/products.yaml
title: Select Product
properties:
  product:
    title: Product
    type: string
    enum: ["Search", "CRM", "Onboarding"]