Skip to content

pass common options via variables/secrets by default #310

Closed
@nicola-lunghi

Description

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/[email protected]
        with:
          host: ${{ env.SSH_HOST }}
          username: ${{ env.SSH_USER }}
          key: ${{ secrets.TESTHOST_SSH_KEY }}
          script: ./step1.sh
   - uses: actions/appleboy/[email protected]
        with:
          host: ${{ env.SSH_HOST }}
          username: ${{ env.SSH_USER }}
          key: ${{ secrets.TESTHOST_SSH_KEY }}
          script: ./step3.sh
   - uses: actions/appleboy/[email protected]
        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

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions