Skip to content

Commit 7955852

Browse files
authored
Use setup-ssh action (#7)
Switch to the [setup-ssh](https://github.com/TheHackerApp/setup-ssh) action to keep behavior consistent across repositories.
1 parent 2f7a468 commit 7955852

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

action.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,10 @@ runs:
4040
toolchain: ${{ inputs.toolchain }}
4141
components: ${{ inputs.components }}
4242

43-
- uses: webfactory/ssh-agent@v0.9.0
43+
- uses: TheHackerApp/setup-ssh@main
4444
with:
45-
ssh-private-key: ${{ inputs.ssh-private-key }}
46-
47-
- name: Add Shipyard host key to .ssh/known_hosts
48-
shell: bash
49-
run: |
50-
mkdir -p ~/.ssh
51-
touch ~/.ssh/known_hosts
52-
ssh-keyscan ssh.shipyard.rs >> ~/.ssh/known_hosts
45+
private-key: ${{ inputs.ssh-private-key }}
46+
host: ssh.shipyard.rs
5347

5448
- name: Login to Shipyard registry
5549
shell: bash

0 commit comments

Comments
 (0)