From 10c25fee3c03baa271186388f232341e26a79ed4 Mon Sep 17 00:00:00 2001 From: Flash Sheridan Date: Fri, 18 Feb 2022 16:17:11 -0500 Subject: [PATCH 1/3] Add warning about env vars defined via others Note that variables in the `env` map cannot be defined in terms of other variables in the map. --- .../using-workflows/workflow-syntax-for-github-actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/using-workflows/workflow-syntax-for-github-actions.md b/content/actions/using-workflows/workflow-syntax-for-github-actions.md index e942212e718e..2f631e5651e1 100644 --- a/content/actions/using-workflows/workflow-syntax-for-github-actions.md +++ b/content/actions/using-workflows/workflow-syntax-for-github-actions.md @@ -184,7 +184,7 @@ A boolean specifying whether the secret must be supplied. ## `env` -A `map` of environment variables that are available to the steps of all jobs in the workflow. You can also set environment variables that are only available to the steps of a single job or to a single step. For more information, see [`jobs..env`](#jobsjob_idenv) and [`jobs..steps[*].env`](#jobsjob_idstepsenv). +A `map` of environment variables that are available to the steps of all jobs in the workflow. You can also set environment variables that are only available to the steps of a single job or to a single step. For more information, see [`jobs..env`](#jobsjob_idenv) and [`jobs..steps[*].env`](#jobsjob_idstepsenv). Note that variables in the `env` map cannot be defined in terms of other variables in the map. If you need complex manipulation of variables, you may wish to use a non-default shell (see below). {% data reusables.repositories.actions-env-var-note %} From 731094795c40de7031a1709ae904e13fc7579436 Mon Sep 17 00:00:00 2001 From: Flash Sheridan Date: Wed, 2 Mar 2022 19:45:36 -0500 Subject: [PATCH 2/3] rm suggestion about non-Bash shell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …and complex manipulation of variables. Co-authored-by: Edward Thomson --- .../using-workflows/workflow-syntax-for-github-actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/using-workflows/workflow-syntax-for-github-actions.md b/content/actions/using-workflows/workflow-syntax-for-github-actions.md index 2f631e5651e1..061706d62216 100644 --- a/content/actions/using-workflows/workflow-syntax-for-github-actions.md +++ b/content/actions/using-workflows/workflow-syntax-for-github-actions.md @@ -184,7 +184,7 @@ A boolean specifying whether the secret must be supplied. ## `env` -A `map` of environment variables that are available to the steps of all jobs in the workflow. You can also set environment variables that are only available to the steps of a single job or to a single step. For more information, see [`jobs..env`](#jobsjob_idenv) and [`jobs..steps[*].env`](#jobsjob_idstepsenv). Note that variables in the `env` map cannot be defined in terms of other variables in the map. If you need complex manipulation of variables, you may wish to use a non-default shell (see below). +A `map` of environment variables that are available to the steps of all jobs in the workflow. You can also set environment variables that are only available to the steps of a single job or to a single step. For more information, see [`jobs..env`](#jobsjob_idenv) and [`jobs..steps[*].env`](#jobsjob_idstepsenv). Note that variables in the `env` map cannot be defined in terms of other variables in the map. {% data reusables.repositories.actions-env-var-note %} From b78f3eca165c3c997031dc68cbd77f7272b7f7cb Mon Sep 17 00:00:00 2001 From: Laura Coursen Date: Thu, 3 Mar 2022 12:46:37 -0600 Subject: [PATCH 3/3] Add :nail_care: --- .../using-workflows/workflow-syntax-for-github-actions.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/actions/using-workflows/workflow-syntax-for-github-actions.md b/content/actions/using-workflows/workflow-syntax-for-github-actions.md index 061706d62216..b65f388585d7 100644 --- a/content/actions/using-workflows/workflow-syntax-for-github-actions.md +++ b/content/actions/using-workflows/workflow-syntax-for-github-actions.md @@ -184,7 +184,9 @@ A boolean specifying whether the secret must be supplied. ## `env` -A `map` of environment variables that are available to the steps of all jobs in the workflow. You can also set environment variables that are only available to the steps of a single job or to a single step. For more information, see [`jobs..env`](#jobsjob_idenv) and [`jobs..steps[*].env`](#jobsjob_idstepsenv). Note that variables in the `env` map cannot be defined in terms of other variables in the map. +A `map` of environment variables that are available to the steps of all jobs in the workflow. You can also set environment variables that are only available to the steps of a single job or to a single step. For more information, see [`jobs..env`](#jobsjob_idenv) and [`jobs..steps[*].env`](#jobsjob_idstepsenv). + +Variables in the `env` map cannot be defined in terms of other variables in the map. {% data reusables.repositories.actions-env-var-note %}