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 a8c189c commit b266c69Copy full SHA for b266c69
.github/workflows/deploy.yml
@@ -50,8 +50,10 @@ jobs:
50
- name: Save the SSH private key to a file
51
run: |
52
mkdir -p ~/.ssh
53
- echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
54
- chmod 600 ~/.ssh/id_rsa
+ if [ ! -f ~/.ssh/id_rsa ]; then
+ echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
55
+ chmod 600 ~/.ssh/id_rsa
56
+ fi
57
58
- name: Add remote server to known_hosts
59
0 commit comments