Skip to content

Commit

Permalink
Fix API_ENDPOINT check if blank
Browse files Browse the repository at this point in the history
Co-authored-by: Sébastien Saunier <seb@lewagon.org>
  • Loading branch information
codezninja and ssaunier authored Apr 6, 2022
1 parent 48ce168 commit b7af3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7af3bd

Please sign in to comment.