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/reference/environment-variables.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ versions:
22
22
23
23
To set custom environment variables, you need to specify the variables in the workflow file. You can define environment variables for a step, job, or entire workflow using the [`jobs.<job_id>.steps[*].env`](/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstepsenv), [`jobs.<job_id>.env`](/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idenv), and [`env`](/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#env) keywords. For more information, see "[Workflow syntax for {% data variables.product.prodname_dotcom %}](/articles/workflow-syntax-for-github-actions/#jobsjob_idstepsenv)."
24
24
25
+
{% raw %}
25
26
```yaml
26
27
jobs:
27
28
weekday_job:
@@ -30,13 +31,14 @@ jobs:
30
31
DAY_OF_WEEK: Mon
31
32
steps:
32
33
- name: "Hello world when it's Monday"
33
-
if: env.DAY_OF_WEEK == 'Mon'
34
+
if: ${{ env.DAY_OF_WEEK == 'Mon' }}
34
35
run: echo "Hello $FIRST_NAME $middle_name $Last_Name, today is Monday!"
35
36
env:
36
37
FIRST_NAME: Mona
37
38
middle_name: The
38
39
Last_Name: Octocat
39
40
```
41
+
{% endraw %}
40
42
41
43
To use the value of an environment variable in a workflow file, you should use the [`env` context](/actions/reference/context-and-expression-syntax-for-github-actions#env-context). If you want to use the value of an environment variable inside a runner, you can use the runner operating system's normal method for reading environment variables.
Copy file name to clipboardExpand all lines: content/actions/reference/environments.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ versions:
16
16
You can configure environments with protection rules and secrets. When a workflow job references an environment, the job won't start until all of the environment's protection rules pass. A job also cannot access secrets that are defined in an environment until all the environment protection rules pass.
17
17
18
18
{% if currentVersion == "free-pro-team@latest" %}
19
-
Environment protection rules and environment secrets are only available on public repositories. If you convert a repository from public to private, any configured protection rules or environment secrets will be ignored, and you will not be able to configure any environments. If you convert your repository back to public, you will have access to any previously configured protection rules and environment secrets.
19
+
Environment protection rules and environment secrets are only available on public repositories and private repositories on an enterprise plan. If you convert a repository from public to private on a non-enterprise plan, any configured protection rules or environment secrets will be ignored, and you will not be able to configure any environments. If you convert your repository back to public, you will have access to any previously configured protection rules and environment secrets.
intro: You can pick a specific commit on one branch and copy the commit to another branch.
4
+
versions:
5
+
free-pro-team: '*'
6
+
---
7
+
8
+
### About Git cherry-pick
9
+
10
+
You can cherry-pick a commit on one branch to create a copy of the commit with the same changes on another branch. If you commit changes to the wrong branch or want to make the same changes to another branch, you can cherry-pick the commit to apply the changes to another branch. You can also use cherry-picking to apply specific changes before you are ready to create or merge a pull request. For example, if you commit a bug fix to a feature branch, you can cherry-pick the commit with the bug fix to other branches of your project.
11
+
12
+
You can also use cherry-picking when collaborating with a team. Some projects incorporate contributions by cherry-picking commits. For more information, see [Distributed Git - Maintaining a Project](https://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a-Project#_rebase_cherry_pick) in the Git documentation.
13
+
14
+
### Cherry-picking a commit
15
+
16
+
{% data reusables.desktop.current-branch-menu %}
17
+
2. In the list of branches, click the branch that has the commit that you want to cherry-pick.
18
+
{% data reusables.desktop.history-tab %}
19
+
4. Drag the commit that you want to cherry-pick to the {% octicon "git-branch" aria-label="The branch icon" %} **Current Branch** menu and drop the commit on the branch that you want to copy the commit to.
20
+

21
+
22
+
### Further reading
23
+
-[git-cherry-pick](https://git-scm.com/docs/git-cherry-pick) in the Git documentation
{% data reusables.webhooks.discussions-webhooks-beta %}
344
+
345
+
Activity related to a discussion. For more information, see the "[Using the GraphQL API for discussions](/graphql/guides/using-the-graphql-api-for-discussions)."
346
+
#### Availability
347
+
348
+
- Repository webhooks
349
+
- Organization webhooks
350
+
- {% data variables.product.prodname_github_app %}s with the `discussions` permission
351
+
352
+
#### Webhook payload object
353
+
354
+
Key | Type | Description
355
+
----|------|-------------
356
+
`action`|`string`| The action performed. Can be `created`, `edited`, `deleted`, `pinned`, `unpinned`, `locked`, `unlocked`, `transferred`, `category_changed`, `answered`, or `unanswered`.
{% data reusables.webhooks.discussions-webhooks-beta %}
369
+
370
+
Activity related to a comment in a discussion. For more information, see "[Using the GraphQL API for discussions](/graphql/guides/using-the-graphql-api-for-discussions)."
371
+
372
+
#### Availability
373
+
374
+
- Repository webhooks
375
+
- Organization webhooks
376
+
- {% data variables.product.prodname_github_app %}s with the `discussions` permission
377
+
378
+
#### Webhook payload object
379
+
380
+
Key | Type | Description
381
+
----|------|-------------
382
+
`action`|`string`| The action performed. Can be `created`, `edited`, or `deleted`.
383
+
`comment`|`object`| The [`discussion comment`](/graphql/guides/using-the-graphql-api-for-discussions#discussioncomment) resource.
Copy file name to clipboardExpand all lines: content/github/working-with-github-pages/troubleshooting-custom-domains-and-github-pages.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,8 @@ Then, make sure the _CNAME_ file is formatted correctly.
23
23
24
24
- The _CNAME_ filename must be all uppercase.
25
25
- The _CNAME_ file can contain only one domain. To point multiple domains to your site, you must set up a redirect through your DNS provider.
26
-
- The _CNAME_entry must be the bare domain. For example, `www.example.com`,`blog.example.com`, or `example.com`.
27
-
- The _CNAME_ entry can only be used once on {% data variables.product.product_name %}. For example, if another repository's _CNAME_ file contains `example.com`, you cannot use `example.com` in the _CNAME_ file for your repository.
26
+
- The _CNAME_file must contain the domain name only. For example, `www.example.com`,`blog.example.com`, or `example.com`.
27
+
- The domain name must be unique across all {% data variables.product.prodname_pages %} sites. For example, if another repository's _CNAME_ file contains `example.com`, you cannot use `example.com` in the _CNAME_ file for your repository.
Copy file name to clipboardExpand all lines: data/glossaries/external.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@
91
91
working tree is pointing to a new branch.
92
92
- term: cherry-picking
93
93
description: >-
94
-
To choose a subset of changes from a series of changes (typically commits) and record them as a new series of changes on top of a different codebase. In Git, this is performed by the `git cherry-pick` command to extract the change introduced by an existing commit on another branch and to record it based on the tip of the current branch as a new commit.
94
+
To choose a subset of changes from a series of changes (typically commits) and record them as a new series of changes on top of a different codebase. In Git, this is performed by the `git cherry-pick` command to extract the change introduced by an existing commit on another branch and to record it based on the tip of the current branch as a new commit. For more information, see [git-cherry-pick](https://git-scm.com/docs/git-cherry-pick) in the Git documentation.
95
95
- term: child team
96
96
description: >-
97
97
Within nested teams, the subteam that inherits the parent team's access
Copy file name to clipboardExpand all lines: data/release-notes/2-21/17.yml
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
date: '2021-03-23'
2
+
intro: Downloads have been disabled due to a major bug affecting multiple customers. A fix will be available in the next patch.
2
3
sections:
3
4
security_fixes:
4
5
- '**HIGH:** A remote code execution vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. User-controlled configuration options used by GitHub Pages were not sufficiently restricted and made it possible to override environment variables leading to code execution on the GitHub Enterprise Server instance. To exploit this vulnerability, an attacker would need permission to create and build a GitHub Pages site on the GitHub Enterprise Server instance. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.0.3 and was fixed in 3.0.3, 2.22.9, and 2.21.17. This vulnerability was reported via the GitHub Bug Bounty program and has been assigned CVE-2021-22864.'
0 commit comments