Add 'uses' and 'with' to action yaml and change names to be consistent with workflow yaml

This commit is contained in:
Ethan Chiu
2020-07-23 12:22:38 -04:00
parent e9dcc05d75
commit cc8e2738ef

View File

@@ -123,7 +123,13 @@
"item-type": "composite-step" "item-type": "composite-step"
} }
}, },
"composite-step": { "steps-item": {
"one-of": [
"run-step",
"regular-step"
]
},
"run-step": {
"mapping": { "mapping": {
"properties": { "properties": {
"name": "string-steps-context", "name": "string-steps-context",
@@ -132,12 +138,26 @@
"type": "string-steps-context", "type": "string-steps-context",
"required": true "required": true
}, },
"env": "step-env", "uses": "env": "step-env",
"working-directory": "string-steps-context", "working-directory": "string-steps-context",
"shell": "string-steps-context" "shell": "string-steps-context"
} }
} }
}, },
"regular-step": {
"mapping": {
"properties": {
"name": "string-steps-context",
"id": "non-empty-string",
"uses": {
"type": "non-empty-string",
"required": true
},
"with": "step-with",
"env": "step-env"
}
}
},
"container-runs-context": { "container-runs-context": {
"context": [ "context": [
"inputs" "inputs"
@@ -203,4 +223,4 @@
} }
} }
} }
} }