Otherwise it fails early and doesn't work for branches. I also refactored it a bit so the `pipefail` disbaling is local. Signed-off-by: Jakub Sokołowski <jakub@status.im>