Skip to content

Set and export environment variable in powershell

Actions
Set and export environment variable using powershell to be available for the steps that follow
1
Latest
Star (5)

export-env-var-powershell

Step syntax:

- name: <name>
  uses: myci-actions/export-env-var-powershell@<version>
  with:
    name: <variable-name>
    value: <variable-value>

Arguments:

  • <variable-name> - Name of the variable to set.

  • <variable-value> - Variable value.

Step example:

- name: add path to PATH environment variable
  uses: myci-actions/export-env-var-powershell@1
  with:
    name: PATH
    value: $env:PATH;c:\some\path

Set and export environment variable in powershell is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Set and export environment variable using powershell to be available for the steps that follow
1
Latest

Set and export environment variable in powershell is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.