mirror of
https://github.com/actions/runner.git
synced 2026-01-17 09:12:08 +08:00
Compare updated template evaluator (#4092)
This commit is contained in:
25
src/Sdk/WorkflowParser/ActionsEnvironmentReference.cs
Normal file
25
src/Sdk/WorkflowParser/ActionsEnvironmentReference.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.Serialization;
|
||||
using GitHub.Actions.WorkflowParser.ObjectTemplating.Tokens;
|
||||
|
||||
namespace GitHub.Actions.WorkflowParser
|
||||
{
|
||||
/// <summary>
|
||||
/// Information about an environment parsed from YML with evaluated name, URL will be evaluated on runner
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public sealed class ActionsEnvironmentReference
|
||||
{
|
||||
public ActionsEnvironmentReference(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
[DataMember]
|
||||
public string Name { get; set; }
|
||||
|
||||
[DataMember]
|
||||
public TemplateToken? Url { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user