1 Commits
master ... docs

Author SHA1 Message Date
appleboy
4241e60706 docs: improve documentation and testing configurations
Some checks failed
scp files / test scp action (push) Failing after 22s
scp files / test deploy artifact (push) Failing after 47s
scp files / test changed-files (push) Failing after 1m11s
scp files / test target folder (push) Failing after 3s
scp files / test Multiple Host (push) Failing after 3s
- Add example for using environment variables with `scp-action` in README.md

Signed-off-by: appleboy <appleboy.tw@gmail.com>
2024-12-24 22:06:36 +08:00

View File

@@ -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