deployphp / action

GitHub Action for Deployer
MIT License
227 stars 46 forks source link

Check if we need to create SSH directory. #6

Closed amustill closed 3 years ago

amustill commented 3 years ago

This action was failing when running on ubuntu-latest with the error: EEXIST: file already exists, mkdir '/home/runner/.ssh'

Simply checking if the SSH directory exists before creating it resolves the issue.

alies-dev commented 3 years ago

I have the same issue:

Run deployphp/action@master
  with:
    private-key: ***

    dep: deploy production --revision=$GITHUB_SHA -vvv
  env:
    SSH_AUTH_SOCK: /tmp/ssh-auth.sock
Error: EEXIST: file already exists, mkdir '/home/runner/.ssh'

I use the latest beta of deployer and master version of the action.

@antonmedv Any updates on this PR?

antonmedv commented 3 years ago

Sorry for delay. Will merge it.