Skip to content

Commit

Permalink
docs: improve documentation and testing configurations
Browse files Browse the repository at this point in the history
- Add example for using environment variables with `scp-action` in README.md

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Dec 24, 2024
1 parent b03d725 commit 4241e60
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,20 @@ Copy file via a SSH password:
target: your_server_target_folder_path
```

Using the environment variables

```yaml
- name: copy file via ssh password
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ env.HOST }}
username: ${{ env.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ env.PORT }}
source: "tests/a.txt,tests/b.txt"
target: ${{ env.TARGET_PATH }}
```

Copy file via a SSH key:

```yaml
Expand Down

0 comments on commit 4241e60

Please sign in to comment.