Skip to content

Use of env variable for actions has no example #1086

@bkk-bcd

Description

@bkk-bcd

There's no documentation on how to override a runners env: https://docs.stackstorm.com/actions.html#built-in-parameters

Is there a schema available for the YAML?

And the obvious choices seem to not work:

name: run_build
pack: builder
runner_type: "local-shell-cmd"
description: Run build for project and branch.
enabled: true
parameters:
  env:
    var1: "val1"
  cmd:
    immutable: true
    default: 'builder build --repo {{repo}} --branch {{branch}}'
  repo:
    type: string
    description: Github repo for project.
    required: true
  branch:
    type: string
    description: Branch to run the build on.
  sha1:
    type: string
    description: Sha1 on branch to run the build on.
  build_parameters:
    type: object
    description: k-v pair (k1=v1,k2=v2) of parameters to pass to build.
name: run_build
pack: builder
runner_type: "local-shell-cmd"
description: Run build for project and branch.
enabled: true
env:
  var1: "val1"
parameters:
  cmd:
    immutable: true
    default: 'builder build --repo {{repo}} --branch {{branch}}'
  repo:
    type: string
    description: Github repo for project.
    required: true
  branch:
    type: string
    description: Branch to run the build on.
  sha1:
    type: string
    description: Sha1 on branch to run the build on.
  build_parameters:
    type: object
    description: k-v pair (k1=v1,k2=v2) of parameters to pass to build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions