Skip to content

Commit

Permalink
send action name for run service (actions#3520)
Browse files Browse the repository at this point in the history
* send action

* format

* comment

* Delete .github/workflows/lint.yml
  • Loading branch information
yaananth authored Oct 21, 2024
1 parent 59ec9b4 commit 3d34a3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/lint.yml

This file was deleted.

1 change: 1 addition & 0 deletions src/Runner.Worker/ExecutionContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ public TaskResult Complete(TaskResult? result = null, string currentOperation =
Status = _record.State,
Number = _record.Order,
Name = _record.Name,
ActionName = StepTelemetry?.Action,
Ref = StepTelemetry?.Ref,
Type = StepTelemetry?.Type,
StartedAt = _record.StartTime,
Expand Down
7 changes: 6 additions & 1 deletion src/Sdk/RSWebApi/Contracts/StepResult.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Threading.Tasks;
Expand All @@ -16,9 +16,14 @@ public class StepResult
[DataMember(Name = "number", EmitDefaultValue = false)]
public int? Number { get; set; }

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

// Example: "actions/checkout"
[DataMember(Name = "action_name", EmitDefaultValue = false)]
public string ActionName { get; set; }

[DataMember(Name = "ref", EmitDefaultValue = false)]
public string Ref { get; set; }

Expand Down

0 comments on commit 3d34a3c

Please sign in to comment.