# Is there an easy way to add environment variables to the choices of downstream tes

**URL:** <https://discourse.julialang.org/t/is-there-an-easy-way-to-add-environment-variables-to-the-choices-of-downstream-tes/54732>\
**Category:** General Usage\
**Tags:** github-actions\
**Created:** [February 6, 2021, 1:36pm UTC](https://discourse.julialang.org/t/is-there-an-easy-way-to-add-environment-variables-to-the-choices-of-downstream-tes/54732 "2021-02-06T13:36:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BridgeBot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bridgebot/32/21491_2.png) [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Post date:** [February 6, 2021, 1:36pm UTC](https://discourse.julialang.org/t/is-there-an-easy-way-to-add-environment-variables-to-the-choices-of-downstream-tes/54732/1 "2021-02-06T13:36:17Z")

</div>

Is there an easy way to add environment variables to the choices of downstream tests in [https://github.com/SciML/SciMLBase.jl/blob/master/.github/workflows/Downstream.yml](https://github.com/SciML/SciMLBase.jl/blob/master/.github/workflows/Downstream.yml) ?

Note that the original poster on Slack cannot see your response here on Discourse. Consider _transcribing the appropriate answer back to Slack_, or pinging the poster here on Discourse so they can _follow this thread_.  
[(Original message :slack:)](https://julialang.slack.com/archives/C6A044SQH/p1612618562156800?thread_ts=1612618562.156800&cid=C6A044SQH) [(More Info)](https://github.com/JuliaCommunity/SlackBridge)

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [February 7, 2021, 1:13am UTC](https://discourse.julialang.org/t/is-there-an-easy-way-to-add-environment-variables-to-the-choices-of-downstream-tes/54732/2 "2021-02-07T01:13:26Z")

</div>

A way to do this is to add another “item” to the matrix that can be used to set the [environment variables for the job](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idenv). As a concrete example, see this commit, which adds the “group” item to the matrix, and references `matrix.package.group` to set the `GROUP` environment variable:  
[https://github.com/SciML/SciMLBase.jl/commit/236b9155798670a427994f4e9e0f4a44ad30a927](https://github.com/SciML/SciMLBase.jl/commit/236b9155798670a427994f4e9e0f4a44ad30a927)
