There has been some scattered discussion on this in other issues but I'm making a seperate issue here as I plan on making a PR for this.
Currently, whenever there is an error uploading secrets, the wrangler-action shows Failed to upload secrets. but provides no additional context.

This makes it very very difficult to debug and have any idea on why the secret upload failed.