Initially it was mentioned by jeremy that I might be able to do with repo hooks.
I think that this should be an improvement on the group side because from an organisation point of view, having access to the agent config is not something which we have. So maybe having environment as repo hook as well might solve it. Due to this, I am not able to use group functionality at all.
Thanks for the help on this one guys. Will have multiple commands in single step in order to bypass this.