Support --ephemeral flag (#660)

This optional flag will configure the runner to only take one job, and let the service un-configure the runner after that job finishes.
This commit is contained in:
Tingluo Huang
2021-09-13 11:28:09 -04:00
committed by GitHub
parent 1b69c279f5
commit 7ffd9af644
7 changed files with 50 additions and 16 deletions

View File

@@ -33,6 +33,9 @@ namespace GitHub.Runner.Common
[DataMember(EmitDefaultValue = false)]
public string PoolName { get; set; }
[DataMember(EmitDefaultValue = false)]
public bool Ephemeral { get; set; }
[DataMember(EmitDefaultValue = false)]
public string ServerUrl { get; set; }