mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
* use path.join()
This commit is contained in:
parent
03c10e4088
commit
d623245bda
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ function main() {
|
|||
const privateKey = core.getInput("private-key");
|
||||
const publicKey = core.getInput("public-key");
|
||||
const name = core.getInput("name");
|
||||
const fileName = path.resolve(dirName, name);
|
||||
const fileName = path.join(dirName, name);
|
||||
fs.writeFileSync(fileName, privateKey, {
|
||||
mode: 0o400,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue