GitHubActionsRuntimeInfo.

EnvPath Property

Summary

Gets the path to environment file to set an environment variable that the following steps in a job can use.

Syntax

public FilePath EnvPath { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Runtime EnvPath: {0}", BuildSystem.GitHubActions.Environment.Runtime.EnvPath);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Runtime EnvPath: {0}", GitHubActions.Environment.Runtime.EnvPath);
}

Value

Type Description
FilePath The path to environment file to set an environment variable that the following steps in a job can use.