Skip to content

Add-GitHubSystemPath

SYNOPSIS

Adds a system path to the GitHub Actions environment

SYNTAX

Add-GitHubSystemPath [[-Path] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Prepends a directory to the system PATH variable and automatically makes it available to all subsequent actions in the current job; the currently running action cannot access the updated path variable. To see the currently defined paths for your job, you can use echo "$env:PATH" in a step or an action.

EXAMPLES

EXAMPLE 1

Add-GitHubSystemPath -Path '$HOME/.local/bin'

PARAMETERS

-Path

{{ Fill Path Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Void

NOTES

Adding a system path