feat: add support to github.server_url

Striping the http[s] from the $GITHUB_DOMAIN will allow the users to pass github.server_url to the action

https://docs.github.com/en/actions/learn-github-actions/contexts
This commit is contained in:
AUGMELO 2023-02-07 17:32:10 +00:00 committed by Brett Logan
parent 516b3f81b1
commit c4f48873a4

View file

@ -654,6 +654,8 @@ CallStatusAPI() {
debug "URL: ${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA}"
GITHUB_DOMAIN=$(echo $GITHUB_DOMAIN | sed 's~http[s]*://~~g')
##############################################
# Call the status API to create status check #
##############################################