Skip to content

Append path to an environment variable in windows

Actions
Permanently append path to a specified windows environment variable
2
Latest
Star (0)

DEPRECATED

append-to-path-windows

Permanently append path to a specified environment variable using powershell. The resulting environment variable value will be persistent across all the following job steps.

Step syntax:

- name: <name>
  uses: myci-actions/append-to-path-windows@<version>
  with:
    path: <path>
    env-var: <env-var-name>

Arguments:

  • <path> - Path to append.

  • <env-var-name> - Environment variable name to append the path to. Default value is PATH.

Step example:

- name: add CoAPP path to module lookup paths
  uses: myci-actions/append-to-path-windows@2
  with:
    path: C:\Program Files (x86)\Outercurve Foundation\Modules
    env-var: PSModulePath

Append path to an environment variable in windows 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

Permanently append path to a specified windows environment variable
2
Latest

Append path to an environment variable in windows 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.