diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 9561c9c..c3bb009 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -54,5 +54,7 @@ jobs: - run: | git clone https://github.com/mpdude/test-1.git test-1-http git clone git@github.com:mpdude/test-1.git test-1-git + git clone ssh://git@github.com/mpdude/test-1.git test-1-git-ssh git clone https://github.com/mpdude/test-2.git test-2-http git clone git@github.com:mpdude/test-2.git test-2-git + git clone ssh://git@github.com/mpdude/test-2.git test-2-git-ssh diff --git a/dist/index.js b/dist/index.js index a36baa4..ac64344 100644 --- a/dist/index.js +++ b/dist/index.js @@ -190,6 +190,7 @@ try { child_process.execSync(`git config --global --replace-all url."git@${sha256}:${ownerAndRepo}".insteadOf "https://github.com/${ownerAndRepo}"`); child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "git@github.com:${ownerAndRepo}"`); + child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "ssh://git@github.com/${ownerAndRepo}"`); let sshConfig = `\nHost ${sha256}\n` + ` HostName github.com\n` diff --git a/index.js b/index.js index 23d818a..cf7b562 100644 --- a/index.js +++ b/index.js @@ -73,6 +73,7 @@ try { child_process.execSync(`git config --global --replace-all url."git@${sha256}:${ownerAndRepo}".insteadOf "https://github.com/${ownerAndRepo}"`); child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "git@github.com:${ownerAndRepo}"`); + child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "ssh://git@github.com/${ownerAndRepo}"`); let sshConfig = `\nHost ${sha256}\n` + ` HostName github.com\n`