The YML file I have used in my project is
The error I get in the workflow build
Surefire results path mentioned in both the images is correct but still, I don't understand why it is unable to import the results.
You need to use the latest version of xray-action , as there was a fix on version v2.4.2 to change the Xray Cloud URL that changed meanwhile. You should use the latest version, which currently is v2.4.5. Meanwhile the tutorial on Xray side was also updated.
From the documentation you have referenced I'm assuming you are using the Cloud version of Xray. If it is the case please make sure you are using the XRAY_CLIENT_ID and XRAY_CLIENT_SECRET in the username/password fields (more info here: https://github.com/mikepenz/xray-action).