Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Jan 22, 2025
1 parent 28c28f7 commit 9a5997f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30365,7 +30365,8 @@ function sshConfig(token) {
return __awaiter(this, void 0, void 0, function* () {
yield (0, exec_1.exec)(`mkdir -p ~/.ssh`);
yield (0, exec_1.exec)(`echo "${token}" > ~/.ssh/id_rsa`);
yield (0, exec_1.exec)(`chmod 600 ~/.ssh/id_rsa`);
yield (0, exec_1.exec)('ls -al ~/.ssh');
// await exec(`chmod 600 ~/.ssh/id_rsa`)
yield (0, exec_1.exec)(`ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts`);
});
}
Expand Down
3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export async function gitPush(repo: string, branch: string) {
export async function sshConfig(token: string) {
await exec(`mkdir -p ~/.ssh`)
await exec(`echo "${token}" > ~/.ssh/id_rsa`)
await exec(`chmod 600 ~/.ssh/id_rsa`)
await exec('ls -al ~/.ssh')
// await exec(`chmod 600 ~/.ssh/id_rsa`)
await exec(`ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts`)
}

0 comments on commit 9a5997f

Please sign in to comment.