Cake.GitHub
by Geert van Horrik, Cake Contributors
GitHub Addin for Cake Build Automation System.
The GitHubActions alias, which returns an IGitHubActionsProvider instance can be used to interact with the GitHub Actions environment.
The following example prints if the build is for a pull request running on GitHub Actions:
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(BuildSystem.GitHubActions.Environment.PullRequest.IsPullRequest);
}
else
{
Information("Not running on GitHub Actions");
}
See IGitHubActionsProvider for details and available methods to interact with GitHub Actions.