Summary
Gets GitHub Actions pull request information.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Environment Info
Syntax
public GitHubActionsPullRequestInfo PullRequest { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(
@"PullRequest:
IsPullRequest: {0}",
BuildSystem.GitHubActions.Environment.PullRequest.IsPullRequest
);
}
else
{
Information("Not running on GitHubActions");
}
if (GitHubActions.IsRunningOnGitHubActions)
{
Information(
@"PullRequest:
IsPullRequest: {0}",
GitHubActions.Environment.PullRequest.IsPullRequest
);
}
else
{
Information("Not running on GitHubActions");
}
Value
Type | Description |
---|---|
Git |
The GitHub Actions pull request information. |