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

Feature/required (#49)

* * make private-key and public-key required

* * required parameter test

* * required parameter test

* * required parameters test 2

* * revert test
This commit is contained in:
shimataro 2019-12-30 08:51:14 +09:00 committed by GitHub
parent d272d00fdd
commit 29be3fc5f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 5 deletions

View file

@ -21,7 +21,9 @@ function main(): void
const files: FileInfo[] = [
{
name: name,
contents: core.getInput("private-key"),
contents: core.getInput("private-key", {
required: true,
}),
options: {
mode: 0o400,
flag: "ax",
@ -29,7 +31,9 @@ function main(): void
},
{
name: `${name}.pub`,
contents: core.getInput("public-key"),
contents: core.getInput("public-key", {
required: true,
}),
options: {
mode: 0o444,
flag: "ax",