name = "heroku_app_name" info_output = `heroku apps:info #{name} --json` app_info = JSON.parse(info_output) current_branch = `git rev-parse --abbrev-ref HEAD`.strip `git push --force #{app_info.dig('app', 'git_url')} #{current_branch}:main`