Configure GitHub pages along with new repository

Good day community.

I’m struggling with GitHub provider right now and to be more specific with github_repository resource. This resource has ability to setup GitHub Pages, but there is problem with this to be done with single run: pages point to gh-pages branch, which doesn’t exists at the moment of repository creation.
Is there a way to resolve this, so there will be no need to run configuration twice where first one for repo creation and second one for pages enabling?

Best regards