Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: pass common options via variables/secrets by default #310

Open
nicola-lunghi opened this issue Apr 2, 2024 · 0 comments

Comments

@nicola-lunghi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant