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

add comments

This commit is contained in:
shimataro 2023-10-10 22:15:27 +09:00
parent 829e4118f1
commit 711063ca38
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
6 changed files with 19 additions and 29 deletions

10
dist/main.js vendored

File diff suppressed because one or more lines are too long

6
dist/main.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/post.js vendored

File diff suppressed because one or more lines are too long

4
dist/post.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -3,25 +3,9 @@ import * as path from "path";
import * as core from "@actions/core";
const STATE_PHASE = "phase";
/** state name of backup suffix */
const STATE_BACKUP_SUFFIX = "backup-suffix";
/**
* current phase
* @returns phase
*/
export function getPhase(): string {
const phase = core.getState(STATE_PHASE);
// next: post
core.saveState(STATE_PHASE, "post");
if (phase === "") {
return "main";
}
return phase;
}
/**
* generate backup suffix name
* @returns backup suffix

View file

@ -5,13 +5,19 @@ import * as core from "@actions/core";
import * as common from "./common";
/** file creation info */
interface FileInfo {
/** file name */
name: string;
/** file contents */
contents: string;
/** creation options */
options: fs.WriteFileOptions;
mustNotExist: boolean; // file must not exist when creating
/** file must not exist when creating */
mustNotExist: boolean;
}
/** default known_hosts */
const KNOWN_HOSTS = [
"github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=",
];