mirror of
https://gitea.com/actions/appleboy-ssh-action.git
synced 2024-11-25 11:39:36 +01:00
docs: update readme
This commit is contained in:
parent
a2d5832a97
commit
9aaf218321
1 changed files with 16 additions and 8 deletions
24
README.md
24
README.md
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue