Skip to content

mnival/ssh-remote-commands-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SSH Remote Command Action

A github action to execute command on remote server with SSH

Usage

name: ssh command
on: push
jobs:
  ssh:
    runs-on: ubuntu-latest
    steps:
      - name: Configure and execute remote command
        uses: mnival/[email protected]
        id: ssh
        with:
          ssh_host: ${{ secrets.SSH_HOST }}
          ssh_user: ${{ secrets.SSH_USER }}
          ssh_key: ${{ secrets.SSH_KEY }}
          ssh_commands: |
            echo "Test first line"
            echo "Line two"

      - name: Execute directly with alias provide in first action
        uses: mnival/[email protected]
        with:
          ssh_host_alias: ${{ steps.ssh.outputs.ssh_host_alias }}
          ssh_commands: echo "Another action"

About

GitHub actions to execute command on remote server with SSH

Resources

License

Stars

Watchers

Forks

Packages

No packages published