1
0
Fork 0
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:
shimataro 2019-09-18 22:28:50 +09:00
parent 03c10e4088
commit d623245bda
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ function main(): void
const publicKey = core.getInput("public-key") as string;
const name = core.getInput("name") as string;
const fileName = path.resolve(dirName, name);
const fileName = path.join(dirName, name);
fs.writeFileSync(fileName, privateKey, {
mode: 0o400,
});