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: learn-pr/github/github-actions-ci/includes/2b-github-actions-essential-features.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ This example is using the `github.ref` context to check the branch that triggere
30
30
31
31
## The contextual information available in a workflow
32
32
33
-
Contexts allow you to access information about workflow runs, variables, runner environments, jobs, and steps. Each context is is an object that contains properties which can be other objects or strings. The contexts available include: `github`, `env`, `vars`, `job`, `jobs`, `steps`, `runner`, `secrets`, `strategy`, `matrix`, `needs` and `inputs`. Here's a table presents these contexts with their descriptions.
33
+
Contexts allow you to access information about workflow runs, variables, runner environments, jobs, and steps. Each context is an object that contains properties which can be other objects or strings. The contexts available include: `github`, `env`, `vars`, `job`, `jobs`, `steps`, `runner`, `secrets`, `strategy`, `matrix`, `needs` and `inputs`. Here's a table presents these contexts with their descriptions.
You can add protection rules for environments defined for your GitHub repository. To add an environment, in your repository:
186
186
187
-
**1.** Click on **Settings**
187
+
1. Click on **Settings**
188
188

189
189
190
-
**2.** Click on **Environment** on the left panel.
190
+
2. Click on **Environment** on the left panel.
191
191
192
192

193
193
194
-
**3.** Use the **New environment** button to add and configure an environment and add protections.
194
+
3. Use the **New environment** button to add and configure an environment and add protections.
195
195

196
196
197
197
### About environments
@@ -208,7 +208,7 @@ Environment deployment protection rules require specific conditions to pass befo
208
208
209
209
1. **Required reviewers protection rules**: Use required reviewers to require a specific person or team to approve workflow jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
210
210
211
-
You also have the option to prevent self-reviews for deployments to protected environments. If you enable this setting, users who initiate a deployment cannot approve the deployment job, even if they're a required reviewer. By enabling self-reviews, it ensures that deployments to protected environments are always reviewed by more than one person.
211
+
You also have the option to prevent self-reviews for deployments to protected environments. If you enable this setting, users who initiate a deployment can't approve the deployment job, even if they're a required reviewer. By enabling self-reviews, it ensures that deployments to protected environments are always reviewed by more than one person.
212
212
213
213
For more information on reviewing jobs that reference an environment with required reviewers, see [Reviewing deployments](https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-deployments/reviewing-deployments#bypassing-environment-protection-rules).
214
214
@@ -226,10 +226,8 @@ Environment deployment protection rules require specific conditions to pass befo
226
226
227
227

228
228
229
-
> **Note**
229
+
> Note
230
230
> If you are on a GitHub Free, GitHub Pro, or GitHub Team plan, the enviroment deployment projection rules are only available for public repositories; with the exception of branch & tag protection rules. For users of GitHub Pro or GitHub Team plans, branch and tag protection rules are also available for private repositories.
0 commit comments