Summary
Gets the URL of the GitHub server.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Workflow Info
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. |
