Skip to content

Commit

Permalink
fix: Custom github url
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed Apr 24, 2024
1 parent a170c7c commit eba4906
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ write_back() {
# write back branch will be the same as the target branch.
write_back_branch=${configuration_output_branch:-$target_branch}

# if the github_url is set, use it, otherwise default to github.com
github_url=${github_url:-github.com}
if [ -z "$github_host" ]; then
if [ -z "$github_url" ]; then
github_url="https://${GITHUB_ACTOR}:${token}@github.com/${GITHUB_REPOSITORY}.git"
echo "Using github.com"
else
echo "Using configured github_url"
fi

# Clone the repo on the current branch
Expand Down

0 comments on commit eba4906

Please sign in to comment.