mirror of
https://github.com/actions/runner.git
synced 2025-12-12 23:46:12 +00:00
Fix templating + assertion on template validation
This commit is contained in:
@@ -371,7 +371,7 @@ namespace GitHub.Runner.Worker
|
|||||||
// stepsToken = run.Value.AssertMapping("steps");
|
// stepsToken = run.Value.AssertMapping("steps");
|
||||||
// Maybe insert a for loop here instead since MappingToken is not supposed to be used in HandlerFactory.cs
|
// 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
|
// 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) {
|
// foreach (var s in steps) {
|
||||||
// // Create list of steps
|
// // Create list of steps
|
||||||
// loadS
|
// loadS
|
||||||
|
|||||||
@@ -98,7 +98,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"steps-item": {
|
"steps-item": {
|
||||||
"run-step": "non-empty-string"
|
"one-of": [
|
||||||
|
"run-step"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"run-step": {
|
||||||
|
"mapping": {
|
||||||
|
"properties": {
|
||||||
|
"run": "non-empty-string"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"container-runs-context": {
|
"container-runs-context": {
|
||||||
"context": [
|
"context": [
|
||||||
|
|||||||
Reference in New Issue
Block a user