Building any branch with spotless requires the main branch to be checked out. This is problematic when running from CI.
> Configure project :
pa in dir: (../performance-analyzer) will be built.
PA repo located at '../performance-analyzer' will be used.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'rca'.
> No such reference 'origin/main'