Add proxy server from below reference.
Settings file ./m2/settings-local-rubygem-proxy.xml needs to be copied.
https://github.com/devonfw/devonfw.github.io/blob/8799d571ef0d45736722974b34ab34d9570dd053/.github/workflows/build-and-deploy.yml#L35
Build should pass after adding the above configurations in github actions.