'Use firebase preview channel in gitlab merge request

I am deploying each merge request to the firebase preview channel and I would like to add generated URL to either comment below the merge request or use the URL for preview like on the print screen enter image description here

So my questions are

  1. how can I parse generated URL from firebase CLI output
  2. how can I use the url for "View app" button

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source