From c4f48873a4304199cc867242b28f1b894f1e996c Mon Sep 17 00:00:00 2001 From: AUGMELO Date: Tue, 7 Feb 2023 17:32:10 +0000 Subject: [PATCH] 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 --- lib/linter.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/linter.sh b/lib/linter.sh index 75472c5e..ee403e3e 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -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 # ##############################################