Passing variable to put task

How to pass a value to put task?
I have a put task, which is basically a cf deploy.

- put: project-deploy-dev
        params:
          manifest: project/manifest.yml
          path: semver/version
          vars_files:
            - /tmp/build/put/project/ci/parameters/parameters-dev.yml
          vars:

The “path” param should come from semver file, how can I achieve this.

Thanks,
Amar

You need to get the semver file as a resource earlier in the job.