Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
  • Loading branch information
Dave Grantham committed Apr 28, 2024
1 parent 3163aa9 commit 6e41b87
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2934,12 +2934,12 @@ try {

console.log(`Added deploy-key mapping: Use identity '${homeSsh}/key-${sha256}' for GitHub repository ${ownerAndRepo}`);

console.log(`exec: ${sshCmd} git@github.com`);
const ssh_github_output_1 = child_process.execFileSync(sshCmd, [`git@github.com`], { stdio: 'inherit' }).toString();
console.log(`ssh to git@github.com:\n${ssh_github_output_1}`);
//console.log(`exec: ${sshCmd} git@github.com`);
//const ssh_github_output_1 = child_process.execFileSync(sshCmd, [`git@github.com`], { stdio: 'inherit' }).toString();
//console.log(`ssh to git@github.com:\n${ssh_github_output_1}`);

console.log(`exec: ${sshCmd} git@key-${sha256}.github.com`);
const ssh_github_output_2 = child_process.execFileSync(sshCmd, [`git@key-${sha256}.github.com`], { stdio: 'inherit' }).toString();
const ssh_github_output_2 = child_process.execFileSync(sshCmd, [`git@key-${sha256}.github.com`]).toString();
console.log(`ssh to git@key-${sha256}.github.com:\n${ssh_github_output_2}`);
});

Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ try {

console.log(`Added deploy-key mapping: Use identity '${homeSsh}/key-${sha256}' for GitHub repository ${ownerAndRepo}`);

console.log(`exec: ${sshCmd} git@github.com`);
const ssh_github_output_1 = child_process.execFileSync(sshCmd, [`git@github.com`], { stdio: 'inherit' }).toString();
console.log(`ssh to git@github.com:\n${ssh_github_output_1}`);
//console.log(`exec: ${sshCmd} git@github.com`);
//const ssh_github_output_1 = child_process.execFileSync(sshCmd, [`git@github.com`], { stdio: 'inherit' }).toString();
//console.log(`ssh to git@github.com:\n${ssh_github_output_1}`);

console.log(`exec: ${sshCmd} git@key-${sha256}.github.com`);
const ssh_github_output_2 = child_process.execFileSync(sshCmd, [`git@key-${sha256}.github.com`], { stdio: 'inherit' }).toString();
const ssh_github_output_2 = child_process.execFileSync(sshCmd, [`git@key-${sha256}.github.com`]).toString();
console.log(`ssh to git@key-${sha256}.github.com:\n${ssh_github_output_2}`);
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cryptid-action-ssh-agent",
"repository": "git@github.com:cryptidtech/ssh-agent.git",
"description": "GitHub Action to set up ssh-agent with a private SSH key",
"version": "0.1.12",
"version": "0.1.13",
"main": "index.js",
"author": "webfactory GmbH <info@webfactory.de>",
"license": "MIT",
Expand Down

0 comments on commit 6e41b87

Please sign in to comment.