Skip to content

Commit 3ed357b

Browse files
iamazeemhubwriter
andauthored
[GitHub Actions] Output from called reusable workflows via env context or GITHUB_ENV is not supported (#25700)
Co-authored-by: hubwriter <hubwriter@github.com>
1 parent 4d65103 commit 3ed357b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/actions/using-workflows/reusing-workflows.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ Called workflows that are owned by the same user or organization{% ifversion ghe
8787
{% ifversion private-actions %}{% else %}* Reusable workflows stored within a private repository can only be used by workflows within the same repository.{% endif %}
8888
{% ifversion actions-reusable-workflow-matrix %}{% else %}* The `strategy` property is not supported in any job that calls a reusable workflow.{% endif %}
8989
* Any environment variables set in an `env` context defined at the workflow level in the caller workflow are not propagated to the called workflow. For more information, see "[AUTOTITLE](/actions/learn-github-actions/variables)" and "[AUTOTITLE](/actions/learn-github-actions/contexts#env-context)."
90+
* Similarly, environment variables set in the `env` context, defined in the called workflow, are not accessible in the `env` context of the caller workflow. Instead, you must use outputs of the reusable workflow. For more information, see "[AUTOTITLE](/actions/using-workflows/reusing-workflows#using-outputs-from-a-reusable-workflow).
9091
* To reuse variables in multiple workflows, set them at the organization, repository, or environment levels and reference them using the `vars` context. For more information see "[AUTOTITLE](/actions/learn-github-actions/variables)" and "[AUTOTITLE](/actions/learn-github-actions/contexts#vars-context)."
92+
* Reusable workflows are called directly within a job, and not from within a job step. You cannot, therefore, use `GITHUB_ENV` to pass values to job steps in the caller workflow.
9193

9294
## Creating a reusable workflow
9395

0 commit comments

Comments
 (0)