fix(sg): restrict grafana link to only render on main
Created by: burmudar
This fixes two slight issues with the grafana link generation
- only render it when we're on the main branch, otherwise it is pointless since logs don't get uploaded on other branches
- Add inline comments to the LogQL query and add a regex - Thanks @bobheadxi !
Test plan
Tested on main-dry-run and allowing all branches