appleboy/ssh-action

pass common options via variables/secrets by default

nicola-lunghi opened this issue · 3 comments

Hi,

it is possible to have a more compact syntax for this action?

I have multiple steps that needs to be executed in sequence

   - uses: actions/appleboy/ssh-action@v1.0.3
        with:
          host: ${{ env.SSH_HOST }}
          username: ${{ env.SSH_USER }}
          key: ${{ secrets.TESTHOST_SSH_KEY }}
          script: ./step1.sh
   - uses: actions/appleboy/ssh-action@v1.0.3
        with:
          host: ${{ env.SSH_HOST }}
          username: ${{ env.SSH_USER }}
          key: ${{ secrets.TESTHOST_SSH_KEY }}
          script: ./step3.sh
   - uses: actions/appleboy/ssh-action@v1.0.3
        with:
          host: ${{ env.SSH_HOST }}
          username: ${{ env.SSH_USER }}
          key: ${{ secrets.TESTHOST_SSH_KEY }}
          script: ./step4.sh

I want to split the steps as I want to see the failure on the specific step.
There's a way to define the host, username, key once and for all?
or can I for example add the ssh key to the ssh config of the host?

Thanks,
Nick