Skip to content

Commit d5ab0d4

Browse files
committed
📝 Add custom host example
1 parent 18215cb commit d5ab0d4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,28 @@ You can tell [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-
244244
ASSIGNEES: BetaHuhn
245245
```
246246

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+
247269
### Advanced sync config
248270

249271
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

Comments
 (0)