mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
* use double quotes for string
This commit is contained in:
parent
df93f2048e
commit
e9c10d6221
4 changed files with 20 additions and 20 deletions
10
src/main.ts
10
src/main.ts
|
@ -1,7 +1,7 @@
|
|||
import * as fs from "fs";
|
||||
import * as path from 'path';
|
||||
import * as path from "path";
|
||||
|
||||
import * as core from '@actions/core';
|
||||
import * as core from "@actions/core";
|
||||
|
||||
function main(): void
|
||||
{
|
||||
|
@ -14,9 +14,9 @@ function main(): void
|
|||
mode: 0o700,
|
||||
});
|
||||
|
||||
const privateKey = core.getInput('private-key') as string;
|
||||
const publicKey = core.getInput('public-key') as string;
|
||||
const name = core.getInput('name') as string;
|
||||
const privateKey = core.getInput("private-key") as string;
|
||||
const publicKey = core.getInput("public-key") as string;
|
||||
const name = core.getInput("name") as string;
|
||||
|
||||
const fileName = path.resolve(dirName, name);
|
||||
fs.writeFileSync(fileName, privateKey, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue