You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/actions/deployment/targeting-different-environments/using-environments-for-deployment.md
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -155,12 +155,9 @@ Secrets stored in an environment are only available to workflow jobs that refere
155
155
{% endnote %}
156
156
{% endif %}
157
157
158
-
{% ifversion actions-configuration-variables %}
159
-
160
158
## Environment variables
161
159
162
160
Variables stored in an environment are only available to workflow jobs that reference the environment. These variables are only accessible using the [`vars`](/actions/learn-github-actions/contexts#vars-context) context. For more information, see "[AUTOTITLE](/actions/learn-github-actions/variables)."
163
-
{% endif %}
164
161
165
162
{% ifversion fpt %}{% note %}
166
163
@@ -223,15 +220,13 @@ Variables stored in an environment are only available to workflow jobs that refe
223
220
1. Enter the secret name.
224
221
1. Enter the secret value.
225
222
1. Click **Add secret**.
226
-
{%- ifversion actions-configuration-variables %}
227
223
1. Optionally, add environment variables. These variables are only available to workflow jobs that use the environment, and are only accessible using the [`vars`](/actions/learn-github-actions/contexts#vars-context) context. For more information, see "[Environment variables](#environment-variables)."
228
224
1. Under **Environment variables**, click **Add Variable**.
229
225
1. Enter the variable name.
230
226
1. Enter the variable value.
231
227
1. Click **Add variable**.
232
-
{%- endif %}
233
228
234
-
You can also create and configure environments through the REST API. For more information, see "[AUTOTITLE](/rest/deployments/environments)," "[AUTOTITLE](/rest/actions/secrets),"{% ifversion actions-configuration-variables %} "[AUTOTITLE](/rest/actions/variables),"{% endif %} and "[AUTOTITLE](/rest/deployments/branch-policies)."
229
+
You can also create and configure environments through the REST API. For more information, see "[AUTOTITLE](/rest/deployments/environments)," "[AUTOTITLE](/rest/actions/secrets),""[AUTOTITLE](/rest/actions/variables)," and "[AUTOTITLE](/rest/deployments/branch-policies)."
235
230
236
231
Running a workflow that references an environment that does not exist will create an environment with the referenced name. The newly created environment will not have any protection rules or secrets configured. Anyone that can edit workflows in the repository can create environments via a workflow file, but only repository admins can configure the environment.
Copy file name to clipboardExpand all lines: content/actions/learn-github-actions/contexts.md
+35-40Lines changed: 35 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,7 @@ You can access contexts using the expression syntax. For more information, see "
34
34
|---------------|------|-------------|
35
35
|`github`|`object`| Information about the workflow run. For more information, see [`github` context](#github-context). |
36
36
|`env`|`object`| Contains variables set in a workflow, job, or step. For more information, see [`env` context](#env-context). |
37
-
{%- ifversion actions-configuration-variables %}
38
-
| `vars` | `object` | Contains variables set at the repository, organization, or environment levels. For more information, see [`vars` context](#vars-context). |{% endif %}
37
+
|`vars`|`object`| Contains variables set at the repository, organization, or environment levels. For more information, see [`vars` context](#vars-context). |
39
38
|`job`|`object`| Information about the currently running job. For more information, see [`job` context](#job-context). |
40
39
|`jobs`|`object`| For reusable workflows only, contains outputs of jobs from the reusable workflow. For more information, see [`jobs` context](#jobs-context). |
41
40
|`steps`|`object`| Information about the steps that have been run in the current job. For more information, see [`steps` context](#steps-context). |
@@ -92,41 +91,41 @@ The following table indicates where each context and special function can be use
0 commit comments