mirror of
https://github.com/webfactory/ssh-agent.git
synced 2025-06-29 14:13:46 +00:00
Don't start ssh-agent
if it's already running
This allows to run the action multiple times to add multiple keys without removing already added ones.
This commit is contained in:
parent
ea17a056b9
commit
72bad59e39
3 changed files with 36 additions and 27 deletions
11
.github/workflows/demo.yml
vendored
11
.github/workflows/demo.yml
vendored
|
@ -9,12 +9,14 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup key
|
||||
- name: Setup first key
|
||||
uses: ./
|
||||
with:
|
||||
ssh-private-key: |
|
||||
${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
|
||||
${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
|
||||
ssh-private-key: ${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
|
||||
- name: Setup second key
|
||||
uses: ./
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
|
||||
- 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
|
||||
|
@ -43,4 +45,3 @@ jobs:
|
|||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue