GitHubActionsWorkflowInfo.

ActionRepository Property

Summary

Gets the owner and repository name of the action being executed.

Syntax

public string ActionRepository { get; }

Examples

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

Value

Type Description
string The owner and repository name of the action being executed. For example, actions/checkout.