From a4e63f0f1aa53e702b3228a78d59e0ffafaa0722 Mon Sep 17 00:00:00 2001 From: "Bo-Yi.Wu" Date: Sun, 9 Apr 2023 16:10:11 +0800 Subject: [PATCH] docs: add README configuration for custom file exclusions - Add configuration example for excluding custom files in README.md Signed-off-by: Bo-Yi.Wu --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 607f44a..72366ce 100644 --- a/README.md +++ b/README.md @@ -189,6 +189,20 @@ Example configuration for multiple servers: 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: ```yaml