Skip to content

Commit

Permalink
Fix setup-ssh action.
Browse files Browse the repository at this point in the history
- Use `apt-get` command.
- Run `apt-get update` to ensure package lists are up to date.
- Use `-y` on install so it works non-interactively.
  • Loading branch information
jonpugh authored Feb 29, 2024
1 parent b3b8c00 commit 0f61001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scaffold/github/actions/common/setup-ssh/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ runs:
using: "composite"
steps:
- run: |
sudo apt install openssh-client
sudo apt-get update
sudo apt-get install -y openssh-client
eval $(ssh-agent -s)
echo "${{ inputs.ssh-private-key }}" | tr -d '\r' | ssh-add -
mkdir -p ~/.ssh
Expand Down

0 comments on commit 0f61001

Please sign in to comment.