Preserve multi-line SSH key newlines using env vars
This commit is contained in:
parent
4f21ab66a0
commit
519c1cfdb1
@ -19,6 +19,8 @@ jobs:
|
||||
apt-get install -y ansible
|
||||
|
||||
- name: Set up SSH private key
|
||||
env:
|
||||
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
||||
|
||||
Loading…
Reference in New Issue
Block a user