Skip to content

Set and export environment variable

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

export-env-var

Set and export environment variable in bash. The resulting environment variable value will be persistent across all the following job steps.

Step syntax:

- name: <name>
  uses: myci-actions/export-env-var@<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@1
  with:
    name: PATH
    value: $PATH:/some/path

Set and export environment variable 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 to be available for the steps that follow
1
Latest

Set and export environment variable 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.