docs: add example

This commit is contained in:
Bo-Yi Wu
2019-09-28 12:26:40 +08:00
parent 5138976c70
commit 6fd371aeaf
3 changed files with 46 additions and 0 deletions

View File

@ -26,3 +26,14 @@ jobs:
port: ${{ secrets.PORT }}
source: "tests/a.txt,tests/b.txt"
target: "test"
- name: remove the specified number of leading path elements
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
source: "tests/a.txt,tests/b.txt"
target: "foobar"
strip_components: 1