Skip to content

Commit 9dd7a48

Browse files
authored
Merge branch 'main' into patch-1
2 parents 9636973 + 75d5262 commit 9dd7a48

18 files changed

Lines changed: 249 additions & 18 deletions

File tree

.github/workflows/browser-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Browser Tests
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches:
7-
- main
8-
pull_request:
5+
# push:
6+
# branches:
7+
# - main
8+
# pull_request:
99

1010
jobs:
1111
see_if_should_skip:

assets/images/help/desktop/click-branch-in-drop-down.png renamed to assets/images/help/desktop/click-branch-in-drop-down-mac.png

File renamed without changes.

content/actions/learn-github-actions/essential-features-of-github-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
expr 1 + 1 > output.log
7777
- name: Upload output file
78-
uses: actions/upload-artifact@v1
78+
uses: actions/upload-artifact@v2
7979
with:
8080
name: output-log-file
8181
path: output.log

content/actions/reference/workflow-syntax-for-github-actions.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,27 @@ jobs:
638638
uses: docker://gcr.io/cloud-builders/gradle
639639
```
640640

641+
#### Example using action inside a different private repository than the workflow
642+
643+
Your workflow must checkout the private repository and reference the action locally.
644+
645+
{% raw %}
646+
```yaml
647+
jobs:
648+
my_first_job:
649+
steps:
650+
- name: Check out repository
651+
uses: actions/checkout@v2
652+
with:
653+
repository: octocat/my-private-repo
654+
ref: v1.0
655+
token: ${{ secrets.GITHUB_TOKEN }}
656+
path: ./.github/actions/my-private-repo
657+
- name: Run my action
658+
uses: ./.github/actions/my-private-repo/my-action
659+
```
660+
{% endraw %}
661+
641662
### `jobs.<job_id>.steps[*].run`
642663

643664
Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.

content/github/creating-cloning-and-archiving-repositories/licensing-a-repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You're under no obligation to choose a license. However, without a license, the
2323

2424
### Determining the location of your license
2525

26-
Most people place their license text in a file named `LICENSE.txt` (or `LICENSE.md`) in the root of the repository; [here's an example from Hubot](https://github.com/github/hubot/blob/master/LICENSE.md).
26+
Most people place their license text in a file named `LICENSE.txt` (or `LICENSE.md` or `LICENSE.rst`) in the root of the repository; [here's an example from Hubot](https://github.com/github/hubot/blob/master/LICENSE.md).
2727

2828
Some projects include information about their license in their README. For example, a project's README may include a note saying "This project is licensed under the terms of the MIT license."
2929

content/github/searching-for-information-on-github/about-searching-on-github.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ You can search for the following information across all repositories you can acc
4545
- [Discussions](/github/searching-for-information-on-github/searching-discussions){% endif %}
4646
- [Code](/articles/searching-code)
4747
- [Commits](/articles/searching-commits)
48-
- [Users](/articles/searching-users){% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@latest" or currentVersion ver_gt "enterprise-server@2.1" %}
48+
- [Users](/articles/searching-users){% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@latest" or currentVersion ver_gt "enterprise-server@2.21" %}
4949
- [Packages](/github/searching-for-information-on-github/searching-for-packages){% endif %}
5050
- [Wikis](/articles/searching-wikis)
5151

content/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ The repository owner has full control of the repository. In addition to the acti
3535
| Delete the repository | "[Deleting a repository](/github/administering-a-repository/deleting-a-repository)" |
3636
| Manage the repository's topics | "[Classifying your repository with topics](/github/administering-a-repository/classifying-your-repository-with-topics)" |{% if currentVersion == "free-pro-team@latest" %}
3737
| Manage security and analysis settings for the repository | "[Managing security and analysis settings for your repository](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)" |{% endif %}{% if currentVersion == "free-pro-team@latest" %}
38-
| Enable the dependency graph for a private repository | "[Exploring the dependencies of a repository](/github/visualizing-repository-data-with-graphs/exploring-the-dependencies-of-a-repository#enabling-and-disabling-the-dependency-graph-for-a-private-repository)" |{% endif %}
39-
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" %}| Delete and restore packages | "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" |{% elsif currentVersion ver_lt "enterprise-server@3.1" or currentVersion == "github-ae@latest" %}| Delete packages | "[Deleting packages](/packages/learn-github-packages/deleting-a-package)" |{% endif %}
38+
| Enable the dependency graph for a private repository | "[Exploring the dependencies of a repository](/github/visualizing-repository-data-with-graphs/exploring-the-dependencies-of-a-repository#enabling-and-disabling-the-dependency-graph-for-a-private-repository)" |{% endif %}{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" %}
39+
| Delete and restore packages | "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" |{% endif %}{% if currentVersion == "enterprise-server@2.22" or currentVersion == "enterprise-server@3.0" or currentVersion == "github-ae@latest" %}
40+
| Delete packages | "[Deleting packages](/packages/learn-github-packages/deleting-a-package)" |{% endif %}
4041
| Customize the repository's social media preview | "[Customizing your repository's social media preview](/github/administering-a-repository/customizing-your-repositorys-social-media-preview)" |
4142
| Create a template from the repository | "[Creating a template repository](/github/creating-cloning-and-archiving-repositories/creating-a-template-repository)" |{% if currentVersion == "free-pro-team@latest" or enterpriseServerVersions contains currentVersion %}
4243
| Receive {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.21" %}{% data variables.product.prodname_dependabot_alerts %}{% else %}security alerts{% endif %} for vulnerable dependencies | "[About alerts for vulnerable dependencies](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies)" |{% endif %}{% if currentVersion == "free-pro-team@latest" %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
1. In the left sidebar, click **OAuth Apps**.
2-
![OAuth Apps section](/assets/images/settings/developer-settings-oauth-apps.png)
2+
![OAuth Apps section](/assets/images/help/settings/developer-settings-oauth-apps.png)

lib/render-content/renderContent.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ module.exports = async function renderContent (
6666
.trim()
6767
}
6868

69+
if (options.cheerioObject) {
70+
return cheerio.load(html, { xmlMode: true })
71+
}
72+
6973
if (options.encodeEntities) html = entities.encode(html)
7074

7175
return html.trim()

lib/rest/static/dereferenced/api.github.com.deref.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139709,7 +139709,7 @@
139709139709
"name",
139710139710
"head_sha"
139711139711
],
139712-
"anyOf": [
139712+
"oneOf": [
139713139713
{
139714139714
"properties": {
139715139715
"status": {
@@ -139719,6 +139719,7 @@
139719139719
}
139720139720
},
139721139721
"required": [
139722+
"status",
139722139723
"conclusion"
139723139724
],
139724139725
"additionalProperties": true

0 commit comments

Comments
 (0)