Skip to content

Commit

Permalink
Fix problem with non existent interactivity in Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kordwarshuis committed Sep 18, 2024
1 parent a0e5baf commit d5709da
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/copy-to-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@ jobs:
- name: Add Known Hosts
run: |
echo "${{ secrets.SSH_KNOWN_HOSTS_DWARSHUIS }}" >> ~/.ssh/known_hosts
- name: Install expect
run: |
sudo apt-get update
sudo apt-get install -y expect
- name: Add SSH Key with Passphrase
run: |
echo "${{ secrets.SSH_PASSPHRASE_DWARSHUIS }}" | ssh-add -
env:
SSH_PASSPHRASE: ${{ secrets.SSH_PASSPHRASE_DWARSHUIS }}
/usr/bin/expect <<EOF
spawn ssh-add -
expect "Enter passphrase for"
send "${{ secrets.SSH_PASSPHRASE_DWARSHUIS }}\r"
expect eof
EOF
- name: Copy /docs to Remote
run: |
Expand Down

0 comments on commit d5709da

Please sign in to comment.