-e "print JSON.parse(ENV['DEPLOYGATE_UPLOAD_APP_STEP_RESULT_JSON'])$1" } json_to_env() { json_parse $1 | envman add --key $2 } json_to_env '["results"]["distribution"]["url"]' DEPLOYGATE_DISTRIBUTION_URL json_to_env '["results"]["revision"]' DEPLOYGATE_REVISION json_to_env '["results"]["icon"]' DEPLOYGATE_APP_ICON json_to_env '["results"]["version_code"]' DEPLOYGATE_VERSION_CODE json_to_env '["results"]["version_name"]' DEPLOYGATE_VERSION_NAME echo -n "https://deploygate.com/qr?size=200&data=$(json_parse '["results"]["distribution"]["url"]')" \ | envman add --key DEPLOYGATE_DISTRIBUTION_URL_QR