Skip to content

Commit bc15682

Browse files
authored
Merge branch 'main' into scheduled-workflow-tests
2 parents 0ab2c86 + fbc8361 commit bc15682

1,228 files changed

Lines changed: 18811 additions & 2875 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_COMMENT_TEMPLATE/status.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Status Update
3-
about: A brief status update.
3+
description: A brief status update.
44
body:
55
- type: dropdown
66
attributes:

.github/ISSUE_COMMENT_TEMPLATE/target-date.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Target Date Update
3-
about: Target date update
3+
description: Target date update
44
body:
55
- type: input
66
attributes:

.github/workflows/check-for-spammy-issues.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,14 @@ jobs:
6565
issue_number: issue.number,
6666
body: "This issue appears to have been opened accidentally. I'm going to close it now, but feel free to open a new issue or ask any questions in [discussions](https://github.com/github/docs/discussions)!"
6767
});
68+
69+
// Add the issue to the Done column on the triage board
70+
try {
71+
await github.projects.createCard({
72+
column_id: 11167427,
73+
content_id: context.payload.issue.id,
74+
content_type: "Issue"
75+
});
76+
} catch (error) {
77+
console.log(error);
78+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Send pull_request to How We Work Boards
2+
3+
# **What it does**: This sends pull requests with the feature label to the Docs Engineering feature board
4+
# **Why we have it**: If we use PRs to track features this automates them ending up on the feature board
5+
# **Who does it impact**: Docs Engineering team members
6+
7+
on:
8+
pull_request:
9+
types:
10+
- labeled
11+
- opened
12+
- reopened
13+
14+
jobs:
15+
triage:
16+
runs-on: ubuntu-latest
17+
continue-on-error: true
18+
steps:
19+
- if: (github.repository == 'github/docs-internal' || github.repository == 'github/docs') && (contains(github.event.pull_request.labels.*.name, 'engineering') && contains(github.event.pull_request.labels.*.name, 'feature'))
20+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
21+
with:
22+
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
23+
script: |
24+
// Only do this for work by the engineering folks since multiple teams do work
25+
// in the docs repos
26+
try {
27+
await github.teams.getMembershipForUserInOrg({
28+
org: 'github',
29+
team_slug: 'docs-engineering',
30+
username: context.payload.sender.login,
31+
});
32+
} catch(err) {
33+
return
34+
}
35+
36+
var column_id = 13445681;
37+
try {
38+
github.projects.createCard({
39+
column_id: column_id,
40+
content_id: context.payload.pull_request.id,
41+
content_type: "PullRequest"
42+
});
43+
} catch (error) {
44+
console.log(error);
45+
}

.pa11yci

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"http://localhost:4001/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address",
2525
"http://localhost:4001/en/github/authenticating-to-github/configuring-two-factor-authentication",
2626
"http://localhost:4001/en/rest",
27-
"http://localhost:4001/en/github/working-with-github-pages/configuring-a-custom-domain-for-your-github-pages-site",
27+
"http://localhost:4001/en/pages/configuring-a-custom-domain-for-your-github-pages-site",
2828
"http://localhost:4001/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests",
2929
"http://localhost:4001/en/github/setting-up-and-managing-your-github-user-account/changing-your-primary-email-address",
3030
"http://localhost:4001/en/github/setting-up-and-managing-your-github-profile/why-are-my-contributions-not-showing-up-on-my-profile",
@@ -36,17 +36,17 @@
3636
"http://localhost:4001/en/github/authenticating-to-github/testing-your-ssh-connection",
3737
"http://localhost:4001/en/github/getting-started-with-github/fork-a-repo",
3838
"http://localhost:4001/en/graphql",
39-
"http://localhost:4001/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site",
39+
"http://localhost:4001/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site",
4040
"http://localhost:4001/en/developers",
4141
"http://localhost:4001/en/github/getting-started-with-github/supported-browsers",
4242
"http://localhost:4001/en/github/managing-your-work-on-github/about-project-boards",
4343
"http://localhost:4001/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork",
44-
"http://localhost:4001/en/github/working-with-github-pages/creating-a-github-pages-site",
44+
"http://localhost:4001/en/pages/getting-started-with-github-pages/creating-a-github-pages-site",
4545
"http://localhost:4001/en/github/authenticating-to-github/working-with-ssh-key-passphrases",
4646
"http://localhost:4001/en/github/authenticating-to-github",
4747
"http://localhost:4001/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages",
48-
"http://localhost:4001/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site",
49-
"http://localhost:4001/en/github/working-with-github-pages/about-github-pages",
48+
"http://localhost:4001/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site",
49+
"http://localhost:4001/en/pages/getting-started-with-github-pages/about-github-pages",
5050
"http://localhost:4001/en/github/setting-up-and-managing-your-github-profile",
5151
"http://localhost:4001/en/actions/getting-started-with-github-actions/about-github-actions",
5252
"http://localhost:4001/en/github/getting-started-with-github",
@@ -75,7 +75,7 @@
7575
"http://localhost:4001/en/github/setting-up-and-managing-your-github-user-account/inviting-collaborators-to-a-personal-repository",
7676
"http://localhost:4001/en/github/setting-up-and-managing-your-github-user-account/changing-your-github-username",
7777
"http://localhost:4001/en/github/getting-started-with-github/create-a-repo",
78-
"http://localhost:4001/en/github/working-with-github-pages/getting-started-with-github-pages",
78+
"http://localhost:4001/en/pages/getting-started-with-github-pages",
7979
"http://localhost:4001/en/github/administering-a-repository/deleting-a-repository",
8080
"http://localhost:4001/en/actions/configuring-and-managing-workflows/using-environment-variables",
8181
"http://localhost:4001/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets",
@@ -86,7 +86,7 @@
8686
"http://localhost:4001/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue",
8787
"http://localhost:4001/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates",
8888
"http://localhost:4001/en/github/authenticating-to-github/about-two-factor-authentication",
89-
"http://localhost:4001/en/github/working-with-github-pages/about-custom-domains-and-github-pages",
89+
"http://localhost:4001/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages",
9090
"http://localhost:4001/en/github/searching-for-information-on-github/searching-code",
9191
"http://localhost:4001/en/github/getting-started-with-github/configuring-git-to-handle-line-endings",
9292
"http://localhost:4001/en/github/getting-started-with-github/getting-changes-from-a-remote-repository",
@@ -95,7 +95,7 @@
9595
"http://localhost:4001/en/github/creating-cloning-and-archiving-repositories/licensing-a-repository",
9696
"http://localhost:4001/en/github/getting-started-with-github/verifying-your-email-address",
9797
"http://localhost:4001/en/github/setting-up-and-managing-your-github-profile/personalizing-your-profile",
98-
"http://localhost:4001/en/github/working-with-github-pages/setting-up-a-github-pages-site-with-jekyll",
98+
"http://localhost:4001/en/pages/setting-up-a-github-pages-site-with-jekyll",
9999
"http://localhost:4001/en/github/managing-subscriptions-and-notifications-on-github",
100100
"http://localhost:4001/en/github/collaborating-with-issues-and-pull-requests/configuring-a-remote-for-a-fork"
101101
]
53.8 KB
Loading
46.4 KB
Loading
18.8 KB
Loading

content/admin/github-actions/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ topics:
3232
{% link_in_list /about-using-actions-on-github-enterprise-server %}
3333
{% link_in_list /enabling-automatic-access-to-githubcom-actions-using-github-connect %}
3434
{% link_in_list /manually-syncing-actions-from-githubcom %}
35+
{% link_in_list /using-the-latest-version-of-the-official-bundled-actions %}
3536
{% link_in_list /setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access %}
3637

3738
{% topic_link_in_list /advanced-configuration-and-troubleshooting %}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: Using the latest version of the official bundled actions
3+
intro: 'You can update the actions that are bundled with your {% data variables.product.prodname_ghe_server %} instance, or use actions directly from {% data variables.product.prodname_dotcom_the_website %}.'
4+
versions:
5+
enterprise-server: '>=2.22'
6+
topics:
7+
- enterprise
8+
---
9+
10+
{% data reusables.actions.enterprise-beta %}
11+
{% data reusables.actions.enterprise-github-hosted-runners %}
12+
13+
Your {% data variables.product.prodname_ghe_server %} instance includes a number of built-in actions that you can use in your workflows. For more information about the bundled actions, see ["Official actions bundled with {% data variables.product.prodname_ghe_server %}"](/admin/github-actions/about-using-actions-on-github-enterprise-server#official-actions-bundled-with-github-enterprise-server).
14+
15+
These bundled actions are a point-in-time snapshot of the official actions found at https://github.com/actions; as a result, these actions may be older versions that can be updated. To update these actions, you can use `actions-sync` to retrieve updated versions from {% data variables.product.prodname_dotcom_the_website %}.
16+
17+
Alternatively, if your {% data variables.product.prodname_ghe_server %} instance has {% data variables.product.prodname_github_connect %} enabled, then you have additional options for using the latest actions from {% data variables.product.prodname_dotcom_the_website %}:
18+
19+
- Your workflow file can directly reference a specific tag that only exists on {% data variables.product.prodname_dotcom_the_website %}.
20+
- To force the workflow file to use the actions on {% data variables.product.prodname_dotcom_the_website %}, you can edit the tag assigned to the bundled actions.
21+
22+
These options are described in more detail in the following sections.
23+
24+
### Using actions-sync to update a bundled action
25+
26+
To update the bundled actions, you can use the `actions-sync` tool to synchronize actions with {% data variables.product.prodname_dotcom_the_website %}. For more information on using `actions-sync`, see "[Manually syncing actions from {% data variables.product.prodname_dotcom_the_website %}](/admin/github-actions/manually-syncing-actions-from-githubcom)."
27+
28+
### Using actions from {% data variables.product.prodname_dotcom_the_website %}
29+
30+
{% data reusables.github-actions.actions-github-connect-requirement %}
31+
32+
Once configured, you can use a new version of an action from {% data variables.product.prodname_dotcom_the_website %} by manually specifying the required version in the workflow file. For example, to use version `v2.2.1` of `actions/setup-python` from {% data variables.product.prodname_dotcom_the_website %}, you can specify the tag `actions/setup-python@v2.2.1` in your workflow file.
33+
34+
### Using the latest version by removing the specific action's tag
35+
36+
{% data reusables.github-actions.actions-github-connect-requirement %}
37+
38+
If you remove the version tag that was previously assigned to an action, {% data variables.product.prodname_ghe_server %} will check {% data variables.product.prodname_dotcom_the_website %} for the required tag. For more information on working with tags, see "[Viewing tags](/github/administering-a-repository/viewing-your-repositorys-releases-and-tags#viewing-tags)."
39+
40+
For example, to use version `v2.2.1` of `actions/setup-python` from {% data variables.product.prodname_dotcom_the_website %}:
41+
42+
1. In {% data variables.product.prodname_ghe_server %}, delete the `v2` tag from the `actions/setup-python` repository.
43+
1. Create a workflow that uses `actions/setup-python` with the `v2` tag.
44+
45+
When the workflow is unable to find the specified `v2` tag on {% data variables.product.prodname_ghe_server %}, it checks {% data variables.product.prodname_dotcom_the_website %} for the required tag. If it finds a tagged version of that action, {% data variables.product.prodname_ghe_server %} uses the version from {% data variables.product.prodname_dotcom_the_website %}.

0 commit comments

Comments
 (0)