1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

* core.getInput() receives "required" option

This commit is contained in:
shimataro 2019-12-22 19:53:52 +09:00
parent bff7726dad
commit aba9d05fc7
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
3 changed files with 14 additions and 6 deletions

View file

@ -20,12 +20,16 @@ function main() {
{
name: name,
mode: 0o400,
contents: core.getInput("private-key"),
contents: core.getInput("private-key", {
required: true,
}),
},
{
name: `${name}.pub`,
mode: 0o444,
contents: core.getInput("public-key"),
contents: core.getInput("public-key", {
required: true,
}),
},
{
name: "known_hosts",