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
+22
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,28 @@ You can tell [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-
244
244
ASSIGNEES: BetaHuhn
245
245
```
246
246
247
+
### Custom GitHub Enterprise Host
248
+
249
+
If your target repository is hosted on a GitHub Enterprise Server you can specify a custom host name like this:
250
+
251
+
**.github/workflows/sync.yml**
252
+
253
+
```yml
254
+
https://custom.host/user/repo:
255
+
- path/to/file.txt
256
+
257
+
# or in a group
258
+
259
+
group:
260
+
- files:
261
+
- source: path/to/file.txt
262
+
dest: path/to/file.txt
263
+
repos: |
264
+
https://custom.host/user/repo
265
+
```
266
+
267
+
> **Note:** The key has to start with http to indicate that you want to use a custom host.
268
+
247
269
### Advanced sync config
248
270
249
271
Here's how I keep common files in sync across my repositories. The main repository [`github-files`](https://github.com/BetaHuhn/github-files) contains all the files I want to sync and the [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action) Action which runs on every push.
0 commit comments