From 2bcaae34da808f3358015da09ab13cfccdcb4a5c Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Mon, 1 Mar 2021 11:14:22 +0000 Subject: [PATCH] Avoid using a separate shell --- .github/workflows/demo.yml | 6 +++--- dist/index.js | 3 --- index.js | 3 --- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 9ebbbe0..e6db086 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -59,10 +59,10 @@ jobs: ${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }} - run: | ssh-add -l - cat ~/.ssh/config - ls -alh ~/.ssh git clone git@github.com:mpdude/test-2.git test-2-git +# cat ~/.ssh/config +# ls -alh ~/.ssh # 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 @@ -76,4 +76,4 @@ jobs: # echo "secret-passphrase" | ssh-add ~/.ssh/5965bf89ab6e2900262e3f6802dfb4d65cb0de539d0fbb97d381e7130a4ba7e9 # ssh-add -L # git clone git@github.com:mpdude/test-2.git test-2-git - shell: bash +# shell: bash diff --git a/dist/index.js b/dist/index.js index c46c563..fa02d6b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -166,12 +166,9 @@ try { const matches = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(lines[lineNumber]) if (matches && matches.length > 0) { core.exportVariable(matches[1], matches[2]) - process.env[matches[1]] = matches[2]; // use variables for ssh-add below } } - console.log(process.env); - console.log("Adding private keys to agent"); var keyNumber = 0; diff --git a/index.js b/index.js index ce81de4..2aa6a81 100644 --- a/index.js +++ b/index.js @@ -49,12 +49,9 @@ try { const matches = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(lines[lineNumber]) if (matches && matches.length > 0) { core.exportVariable(matches[1], matches[2]) - process.env[matches[1]] = matches[2]; // use variables for ssh-add below } } - console.log(process.env); - console.log("Adding private keys to agent"); var keyNumber = 0;