[OS-BUILD PATCHv2] CI: use common code for merge and release