4 Commits

Author SHA1 Message Date
aa1ecdd19a update doc
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2019-09-30 16:55:40 +08:00
bffdd4e1f4 chore(ssh): set default port as 22
fix: https://github.com/appleboy/ssh-action/issues/5

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2019-09-30 16:54:44 +08:00
f4890bec77 update action link
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2019-09-30 11:35:28 +08:00
9aaf218321 docs: update readme 2019-09-29 14:16:47 +08:00
2 changed files with 19 additions and 10 deletions

View File

@ -1,6 +1,6 @@
# 🚀 SSH for GitHub Actions # 🚀 SSH for GitHub Actions
[GitHub Action](https://developer.github.com/actions/) for executing remote ssh commands. [GitHub Action](https://github.com/features/actions) for executing remote ssh commands.
![ssh workflow](./images/ssh-workflow.png) ![ssh workflow](./images/ssh-workflow.png)
@ -11,14 +11,22 @@
Executing remote ssh commands. Executing remote ssh commands.
```yaml ```yaml
- name: executing remote ssh commands using password name: remote ssh command
uses: appleboy/ssh-action@master on: [push]
with: jobs:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }} build:
password: ${{ secrets.PASSWORD }} name: Build
port: ${{ secrets.PORT }} runs-on: ubuntu-latest
script: whoami steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: whoami
``` ```
output: output:
@ -38,7 +46,7 @@ Successfully executed commands to all host.
see the [action.yml](./action.yml) file for more detail imformation. see the [action.yml](./action.yml) file for more detail imformation.
* host - scp remote host * host - scp remote host
* port - scp remote port * port - scp remote port, default is `22`
* username - scp username * username - scp username
* password - scp password * password - scp password
* timeout - timeout for ssh to remote host, default is `30s` * timeout - timeout for ssh to remote host, default is `30s`

View File

@ -6,6 +6,7 @@ inputs:
description: 'ssh remote host' description: 'ssh remote host'
port: port:
description: 'ssh remote port' description: 'ssh remote port'
default: 22
username: username:
description: 'ssh username' description: 'ssh username'
password: password: