Module import mounts of one file in data folder

bep mentioned a solution in another issue: Hugo Module Mounts: use root file as source

I had the same issue and loaded my file to the assets folder instead as suggested:

[[module.imports.mounts]]
    source=".github/workflows/deploy_prod.yaml"
    target="assets/configs/deploy_prod.yaml"

Then in the shortcode, I load the “asset” through the resources method and apply the transform as suggested by bep

{{ $deployProd := resources.Get "configs/deploy_prod.yaml" | transform.Unmarshal }}