Skip to content

Commit

Permalink
Add GitHub Actions uses keyword (#1803)
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham authored Aug 25, 2021
1 parent c707113 commit 0b3bcf4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/schemas/json/github-action.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@
}
]
},
"uses": {
"$comment": "https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsstepsuses",
"description": "Selects an action to run as part of a step in your job.",
"type": "string"
},
"name": {
"$comment": "https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsstepsname",
"description": "The name of the composite run step.",
Expand All @@ -116,9 +121,13 @@
"type": "string"
}
},
"required": [
"run",
"shell"
"oneOf": [
{
"required": ["run", "shell"]
},
{
"required": ["uses"]
}
],
"additionalProperties": false
}
Expand Down

0 comments on commit 0b3bcf4

Please sign in to comment.