mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
* Adding Snapshot additional mapping tokens * Lint failure fixes * Lint failure fixes - 2 * Lint failure fixes - 3 * Fixed a few nits * Lint fixes * Removed unncessary white space
28 lines
813 B
C#
28 lines
813 B
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
using GitHub.DistributedTask.ObjectTemplating.Tokens;
|
|
using GitHub.DistributedTask.Pipelines.ObjectTemplating;
|
|
|
|
namespace GitHub.DistributedTask.Pipelines
|
|
{
|
|
[DataContract]
|
|
public class Snapshot
|
|
{
|
|
public Snapshot(string imageName, string condition = null, string version = null)
|
|
{
|
|
ImageName = imageName;
|
|
Condition = condition ?? $"{PipelineTemplateConstants.Success}()";
|
|
Version = version ?? "1.*";
|
|
}
|
|
|
|
[DataMember(EmitDefaultValue = false)]
|
|
public String ImageName { get; set; }
|
|
|
|
[DataMember(EmitDefaultValue = false)]
|
|
public String Condition { get; set; }
|
|
|
|
[DataMember(EmitDefaultValue = false)]
|
|
public String Version { get; set; }
|
|
}
|
|
}
|