Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow specifying custom target server domain #80

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ inputs:
required: true
default: 'github.com'

target_host_domain:
description: 'Domain name to be used in target repo URL.'
required: false
default: 'github.com'

shallow_since:
description: 'Length of time used when fetching shallow repo data, should match how often you perform a sync'
required: true
Expand Down
2 changes: 1 addition & 1 deletion run/push_updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ push_new_commits() {
# TODO: figure out how this would work in local mode...
# update remote url with token since it is not persisted during checkout step when syncing from a private repo
if [ -n "${INPUT_TARGET_REPO_TOKEN}" ]; then
git remote set-url origin "https://${GITHUB_ACTOR}:${INPUT_TARGET_REPO_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git remote set-url origin "https://${GITHUB_ACTOR}:${INPUT_TARGET_REPO_TOKEN}@${INPUT_TARGET_HOST_DOMAIN}/${GITHUB_REPOSITORY}.git"
fi

# shellcheck disable=SC2086
Expand Down