Add GitHub Enterprise support (#106)

* Add GitHub url and GitHub Enterprise support

* Add review improvements

* Modify the default value to github.server_url
This commit is contained in:
Pascal Zimmermann
2022-02-18 10:26:44 +01:00
committed by GitHub
parent 8407731efe
commit a7824cd3a2
4 changed files with 11 additions and 2 deletions

View File

@@ -23,6 +23,6 @@ fi
cd ${INPUT_DIRECTORY}
remote_repo="https://${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@github.com/${REPOSITORY}.git"
remote_repo="https://${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@${GITHUB_URL}/${REPOSITORY}.git"
git push "${remote_repo}" HEAD:${INPUT_BRANCH} --follow-tags $_FORCE_OPTION $_TAGS;