Skip to content

Commit

Permalink
cleanup message displayed on job started/completed hooks (#1769)
Browse files Browse the repository at this point in the history
  • Loading branch information
thboop authored Mar 18, 2022
1 parent 87e86e3 commit 8792d8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Runner.Worker/JobHookProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public async Task RunHook(IExecutionContext executionContext, object data)
var hookData = data as JobHookData;
ArgUtil.NotNull(hookData, nameof(JobHookData));

var displayName = hookData.Stage == ActionRunStage.Pre ? Constants.Hooks.JobStartedStepName : Constants.Hooks.JobCompletedStepName;
var displayName = hookData.Stage == ActionRunStage.Pre ? "job started hook" : "job completed hook";
// Log to users so that they know how this step was injected
executionContext.Output($"A '{displayName}' has been configured by the self-hosted runner administrator");
executionContext.Output($"A {displayName} has been configured by the self-hosted runner administrator");

// Validate script file.
if (!File.Exists(hookData.Path))
Expand Down

0 comments on commit 8792d8e

Please sign in to comment.