Fix templating + assertion on template validation

This commit is contained in:
Ethan Chiu
2020-06-15 10:09:05 -04:00
parent 85796d0011
commit e654a3e885
2 changed files with 11 additions and 2 deletions

View File

@@ -371,7 +371,7 @@ namespace GitHub.Runner.Worker
// stepsToken = run.Value.AssertMapping("steps");
// Maybe insert a for loop here instead since MappingToken is not supposed to be used in HandlerFactory.cs
// Just support 1 layer of steps w/ just run
var steps = run.Value.AssertMapping("steps");
var steps = run.Value.AssertSequence("steps");
// foreach (var s in steps) {
// // Create list of steps
// loadS

View File

@@ -98,7 +98,16 @@
}
},
"steps-item": {
"run-step": "non-empty-string"
"one-of": [
"run-step"
]
},
"run-step": {
"mapping": {
"properties": {
"run": "non-empty-string"
}
}
},
"container-runs-context": {
"context": [