Preserve multi-line SSH key newlines using env vars

This commit is contained in:
Isshi0417 2026-07-07 07:16:02 +00:00
parent 4f21ab66a0
commit 519c1cfdb1

View File

@ -19,6 +19,8 @@ jobs:
apt-get install -y ansible apt-get install -y ansible
- name: Set up SSH private key - name: Set up SSH private key
env:
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519