Skip to content

Commit

Permalink
Introduce configurable GitHub URL (support GitHub Enterprise deployme…
Browse files Browse the repository at this point in the history
…nts)
  • Loading branch information
ruebenramirez committed Aug 25, 2021
1 parent fa2ff6b commit fd6099e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1,666 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ A Github Action that can sync files from one repository to many others. This act

**Required** Token to use to get repos and write secrets. `${{secrets.GITHUB_TOKEN}}` will **not** work.

### `GITHUB_SERVER`

Configurable GitHub Server (to support GitHub Enterprise deployments). If not specified, will default to `github.com`. Should not include `http(s)://`. Should also not include trailing `/` character.

### `SRC_REPO`

Source of truth for all files to sync. If files get added, modified or deleted here, those changes will be synced to all TARGET_REPOS. Defaults to the workflows repository (`$GITHUB_REPOSITORY`). A custom branch can be defined by adding the branchname after a colon behind the SRC_REPO. `repoSlug` or `repoSlug:branchName`
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ inputs:
GITHUB_TOKEN:
description: Token to use to get repos and write secrets
required: true
GITHUB_SERVER:
description: |
Specify a GitHub Server other than github.com (for GitHub Enterprise deployment support)
required: false
GIT_EMAIL:
description: |
The e-mail address used to commit the synced files. Defaults to $GITHUB_ACTOR@users.noreply.github.com
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit fd6099e

Please sign in to comment.