We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9695a8 commit cdb7d6eCopy full SHA for cdb7d6e
.github/workflows/main.yml
@@ -23,13 +23,14 @@ jobs:
23
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
24
VM_PASSPHRASE: ${{ secrets.VM_PASSPHRASE }}
25
run: |
26
- # Clear any previously loaded keys
27
- ssh-add -D
+ # Check if SSH agent is running and start it if not
+ if [ -z "$SSH_AGENT_PID" ]; then
28
+ eval "$(ssh-agent -s)"
29
+ fi
30
# Set up the SSH directory and key
31
mkdir -p ~/.ssh
32
echo "$SSH_PRIVATE_KEY" > ~/.ssh/deployment_key
33
chmod 600 ~/.ssh/deployment_key
- eval "$(ssh-agent -s)"
34
echo "$VM_PASSPHRASE" | ssh-add ~/.ssh/deployment_key
35
36
- name: Configure SSH Settings
0 commit comments