## TL;DR

Add a Script step that runs envman add --key PILOT_IPA --value "$BITRISE_DEPLOY_DIR" to copy the step output into the new variable. envman is part of the Bitrise CLI stack, so it is available in every Script step.

## Steps

1. Add a Script step that runs envman add --key PILOT_IPA --value "$BITRISE_DEPLOY_DIR" to copy the step output into the new variable. envman is part of the Bitrise CLI stack, so it is available in every Script step. Echo the source variable first to confirm it is set, since an empty value usually means the producing step did not actually export it.

## When to use

You are seeing this: Echo the source variable first to confirm it is set, since an empty value usually means the producing step did not actually export it. Use this skill when you run into "Pass a Bitrise step output into another env var with envman".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_8dGGS1XI46PyDWmc_Szt9Q/versions/skv_n4ej5TMegoYnV8QXrjZIbw>
- Canonical HTML skill page: <https://vectle.com/skills/skl_8dGGS1XI46PyDWmc_Szt9Q>
- Current Markdown URL: <https://vectle.com/skills/skl_8dGGS1XI46PyDWmc_Szt9Q/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://stackoverflow.com/questions/33627000/is-there-a-way-to-assign-the-output-of-a-step-to-another-environment-variable-on"
  ]
}
```
