When `gradle-build-action` is run for pull requests, it will only read from, but never write to the build cache. To make the cache actually useful, we build the `main` branch (but don't run the tests).