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