docs: add README configuration for custom file exclusions

- Add configuration example for excluding custom files in README.md

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu 2023-04-09 16:10:11 +08:00
parent 7cc0f645c7
commit a4e63f0f1a
1 changed files with 14 additions and 0 deletions

View File

@ -189,6 +189,20 @@ Example configuration for multiple servers:
target: "test" target: "test"
``` ```
Example configuration for exclude custom files:
```yaml
uses: appleboy/scp-action@master
with:
host: "example.com"
username: foo
password: bar
port: 22
- source: "tests/*.txt"
+ source: "tests/*.txt,!tests/a.txt,!tests/b.txt"
target: "test"
```
Remove the specified number of leading path elements: Remove the specified number of leading path elements:
```yaml ```yaml