Skip to content

Commit

Permalink
docs: improve documentation and testing configurations (#193)
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 <[email protected]>
  • Loading branch information
appleboy authored Dec 24, 2024
1 parent b03d725 commit 4f2c27b
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/[email protected]
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 4f2c27b

Please sign in to comment.