You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,30 @@ user/repo:
195
195
196
196
> **Note:** the exclude file path is relative to the source path
197
197
198
+
### Include files that match a specific pattern
199
+
200
+
Using the includeFilePatterns you can filter the list of files that are synchronized to those that match the regex:
201
+
202
+
```yml
203
+
user/repo:
204
+
- source: workflows
205
+
dest: .github/workflows/
206
+
includeFilePatterns: "*.yml"
207
+
```
208
+
209
+
### Exclude files that match a specific pattern
210
+
211
+
212
+
Using the excludeFilePatterns you can filter out the list of files that are synchronized to those that match the regex:
213
+
214
+
```yml
215
+
user/repo:
216
+
- source: workflows
217
+
dest: .github/workflows/
218
+
excludeFilePatterns: "*.md"
219
+
```
220
+
221
+
198
222
### Don't replace existing file(s)
199
223
200
224
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