Skip to content

Commit 3d34a3c

Browse files
authored
send action name for run service (actions#3520)
* send action * format * comment * Delete .github/workflows/lint.yml
1 parent 59ec9b4 commit 3d34a3c

File tree

3 files changed

+7
-25
lines changed

3 files changed

+7
-25
lines changed

Diff for: .github/workflows/lint.yml

-24
This file was deleted.

Diff for: src/Runner.Worker/ExecutionContext.cs

+1
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ public TaskResult Complete(TaskResult? result = null, string currentOperation =
508508
Status = _record.State,
509509
Number = _record.Order,
510510
Name = _record.Name,
511+
ActionName = StepTelemetry?.Action,
511512
Ref = StepTelemetry?.Ref,
512513
Type = StepTelemetry?.Type,
513514
StartedAt = _record.StartTime,

Diff for: src/Sdk/RSWebApi/Contracts/StepResult.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Runtime.Serialization;
44
using System.Threading.Tasks;
@@ -16,9 +16,14 @@ public class StepResult
1616
[DataMember(Name = "number", EmitDefaultValue = false)]
1717
public int? Number { get; set; }
1818

19+
// Example: "Run actions/checkout@v3"
1920
[DataMember(Name = "name", EmitDefaultValue = false)]
2021
public string Name { get; set; }
2122

23+
// Example: "actions/checkout"
24+
[DataMember(Name = "action_name", EmitDefaultValue = false)]
25+
public string ActionName { get; set; }
26+
2227
[DataMember(Name = "ref", EmitDefaultValue = false)]
2328
public string Ref { get; set; }
2429

0 commit comments

Comments
 (0)