regen-repo call doesn't appear to have a tty, so isn't actually waiting. Adding wait-repo call just after to ensure the repo is regenerated before continuing the koji calls.