Skip to content

api_function_addgithubactionspath

hugoalh edited this page Dec 27, 2023 · 9 revisions

Add-GitHubActionsPATH

  • Type: Function
  • In Version: >= v0.3.0

Add PATH for the current step and/or all of the subsequent steps in the current job.

  • Add-GitHubActionsPATH
      [-Path] <String[]>
      [-Scope <EnumFlag:GitHubActionsEnvironmentVariableScopes>]
      [-Optimize]

Parameter

Optimize

(>= v2.0.0) [Optional] Whether to have an optimize operation by replace exist command instead of add command directly.

  • Position: Named
  • Accept Pipeline Input By Property Name: True βœ”οΈ

Path

<String[]> Absolute paths.

  • Position: 0
  • Accept Pipeline Input: True βœ”οΈ
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Paths

Scope

[Optional] <EnumFlag:GitHubActionsEnvironmentVariableScopes> Scope of the PATHs.

  • Default Value:
    [GitHubActionsEnvironmentVariableScopes]3
  • Position: Named
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Scopes

NoValidator

πŸ‘Ž Deprecated

This is officially deprecated, maybe throw warning in the latest version, and maybe remove in the future version.

(< v2.0.0) [Optional] <Switch> Whether to not check the paths are valid.

  • Position: Named
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Alias:
    • NoValidate
    • SkipValidate
    • SkipValidator

Output

<Void>

Guide

API

Enum

Enum Flag

Function

Function Alias

Clone this wiki locally