GitHubActionsWorkflowInfo.

ApiUrl Property

Summary

Gets the API URL.

Syntax

public string ApiUrl { get; }

Examples

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

Value

Type Description
string The API URL. For example: https://api.github.com.