Skip to content

Commit 9351bdf

Browse files
authored
Update main.yml
1 parent cdb7d6e commit 9351bdf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ jobs:
3333
chmod 600 ~/.ssh/deployment_key
3434
echo "$VM_PASSPHRASE" | ssh-add ~/.ssh/deployment_key
3535
36-
- name: Configure SSH Settings
36+
- name: Create SSH Config File
3737
run: |
38+
# Create an SSH config file to avoid the "No such file or directory" error
39+
mkdir -p ~/.ssh
3840
echo -e "Host *\n IdentitiesOnly yes\n StrictHostKeyChecking accept-new\n LogLevel VERBOSE" > ~/.ssh/config
41+
chmod 600 ~/.ssh/config
3942
4043
- name: Add VM to known_hosts
4144
run: |

0 commit comments

Comments
 (0)