Skip to content

Commit 25c3154

Browse files
DNN Platform CI Botbdukes
authored andcommitted
Remove environment variable names from messages
These vary based on CI provider
1 parent f60e7a7 commit 25c3154

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Build/Tasks/CreateGitHubPullRequest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public override async Task RunAsync(Context context)
7373
: context.GitHubActions().IsRunningOnGitHubActions
7474
? context.GitHubActions().Environment.Workflow.Ref
7575
: string.Empty;
76-
context.Information("CreateGitHubPullRequest: BUILD_SOURCEBRANCH is '{0}'.", sourceBranch);
76+
context.Information("CreateGitHubPullRequest: source branch is '{0}'.", sourceBranch);
7777
if (!IsTargetedBranch(sourceBranch))
7878
{
7979
context.Information("Skipping CreateGitHubPullRequest because branch '{0}' is not develop, main, or release/*.", sourceBranch);
@@ -93,12 +93,12 @@ public override async Task RunAsync(Context context)
9393
? context.AzurePipelines().Environment.Repository.RepoName
9494
: context.GitHubActions().IsRunningOnGitHubActions
9595
? context.GitHubActions().Environment.Workflow.Repository
96-
: throw new CakeException("BUILD_REPOSITORY_NAME environment variable is not set.");
96+
: throw new CakeException("Repository name environment variable is not set.");
9797

9898
var parts = repoSlug.Split('/');
9999
if (parts.Length != 2)
100100
{
101-
throw new CakeException($"BUILD_REPOSITORY_NAME '{repoSlug}' is not in the expected 'owner/repo' format.");
101+
throw new CakeException($"Repository name '{repoSlug}' is not in the expected 'owner/repo' format.");
102102
}
103103

104104
var owner = parts[0];

0 commit comments

Comments
 (0)