GitHubActionsWorkflowInfo.

ServerUrl Property

Summary

Gets the URL of the GitHub server.

Syntax

public string ServerUrl { get; }

Examples

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

Value

Type Description
string The URL of the GitHub server. For example: https://github.com.