For anyone finding this thread and using GitHub Actions to publish their Ansible role, my current workaround is to extract the galaxy_info.role_name using yq and provide this to the --role-name CLI argument.
yq is installed by default on ubuntu-latest GitHub runner.