GitHubActionsCommands.

AddPath(DirectoryPath) Method

Summary

Prepends a directory to the system PATH variable and automatically makes it available to all subsequent actions in the current job.

Syntax

public void AddPath(DirectoryPath path)

Examples

if (GitHubActions.IsRunningOnGitHubActions)
{
    GitHubActions.Commands.AddPath(toolsPath);
}

Parameters

Name Type Description
path DirectoryPath The directory path.

Return Value

Type Description
void