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:
parent
d272d00fdd
commit
29be3fc5f3
3 changed files with 13 additions and 5 deletions
|
@ -19,7 +19,9 @@ function main() {
|
|||
const files = [
|
||||
{
|
||||
name: name,
|
||||
contents: core.getInput("private-key"),
|
||||
contents: core.getInput("private-key", {
|
||||
required: true,
|
||||
}),
|
||||
options: {
|
||||
mode: 0o400,
|
||||
flag: "ax",
|
||||
|
@ -27,7 +29,9 @@ function main() {
|
|||
},
|
||||
{
|
||||
name: `${name}.pub`,
|
||||
contents: core.getInput("public-key"),
|
||||
contents: core.getInput("public-key", {
|
||||
required: true,
|
||||
}),
|
||||
options: {
|
||||
mode: 0o444,
|
||||
flag: "ax",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue