Skip to content

Commit fb0b34c

Browse files
committed
📝 Add exclude example
1 parent b557527 commit fb0b34c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,21 @@ user/repo:
153153
dest: .github/workflows/
154154
```
155155

156+
### Exclude certain files when syncing directories
157+
158+
Using the `exclude` key you can specify files you want to exclude when syncing entire directories (#26).
159+
160+
```yml
161+
user/repo:
162+
- source: workflows/
163+
dest: .github/workflows/
164+
exclude: |
165+
node.yml
166+
lint.yml
167+
```
168+
169+
> **Note:** the exclude file path is relative to the source path
170+
156171
### Don't replace existing file(s)
157172

158173
By default if a file already exists in the target repository, it will be replaced. You can change this behaviour by setting the `replace` option to `false`:

0 commit comments

Comments
 (0)