diff --git a/entrypoint.rb b/entrypoint.rb index 5d371d2..4475aa5 100755 --- a/entrypoint.rb +++ b/entrypoint.rb @@ -10,7 +10,7 @@ verbose = ENV["VERBOSE"] wait = ENV["WAIT_INTERVAL"] workflow_name = ENV["RUNNING_WORKFLOW_NAME"] -api_endpoint = ENV['API_ENDPOINT'] || 'https://api.github.com' +api_endpoint = ENV.fetch("API_ENDPOINT", "").strip.empty? ? "https://api.github.com" : ENV["API_ENDPOINT"] GithubChecksVerifier.configure do |config| config.allowed_conclusions = allowed_conclusions.split(",").map(&:strip)