Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of env variable for actions has no example #1086

Open
bkk-bcd opened this issue Aug 18, 2021 · 1 comment
Open

Use of env variable for actions has no example #1086

bkk-bcd opened this issue Aug 18, 2021 · 1 comment

Comments

@bkk-bcd
Copy link

bkk-bcd commented Aug 18, 2021

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.
@blag
Copy link
Contributor

blag commented Aug 18, 2021

There are examples of overriding parameters in the next section down:
https://docs.stackstorm.com/actions.html#overriding-runner-parameters

None of those override env specifically though. Some examples of that might help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants