in report/download_artifacts.rb [32:45]
def version
if ENV['STACK_VERSION']
ENV['STACK_VERSION']
elsif (branch = ENV['BRANCH'])
require 'open-uri'
require 'yaml'
branch = 'master' if branch == 'main'
versions = URI.open("https://snapshots.elastic.co/latest/#{branch}.json").read
YAML.safe_load(versions)['version']
else
read_version_from_github
end
end