Skip to content

Commit 0ac9a27

Browse files
authored
Merge branch 'main' into actions-command-echoing
2 parents 937a86c + 0f3a861 commit 0ac9a27

File tree

30,186 files changed

+805302
-1219213
lines changed

Some content is hidden

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

30,186 files changed

+805302
-1219213
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
babelOptions: { configFile: './.babelrc' },
1414
sourceType: 'module',
1515
},
16+
ignorePatterns: ['tmp/*'],
1617
rules: {
1718
'import/no-extraneous-dependencies': ['error', { packageDir: '.' }],
1819
},

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Closes [issue link]
2525
### Check off the following:
2626

2727
- [ ] I have reviewed my changes in staging (look for "Automatically generated comment" and click **Modified** to view your latest changes).
28-
- [ ] For content changes, I have completed the [self-review checklist](https://github.com/github/docs/blob/main/CONTRIBUTING.md#self-review).
28+
- [ ] For content changes, I have completed the [self-review checklist](https://github.com/github/docs/blob/main/contributing/self-review.md#self-review).
2929

3030
### Writer impact (This section is for GitHub staff members only):
3131

.github/allowed-actions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export default [
1212
'actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074', // v2.2.4
1313
'alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488', // v0.8.1
1414
'andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90', // v1.0.4
15-
'crowdin/github-action@d7f217268068f1244883a993379d62d816f84f25', // v1.4.0
16-
'crykn/copy_folder_to_another_repo_action@0282e8b9fef06de92ddcae9fe6cb44df6226646c',
15+
'crowdin/github-action@d0622816ed4f4744db27d04374b2cef6867f7bed', // v1.4.1
1716
'cschleiden/actions-linter@caffd707beda4fc6083926a3dff48444bc7c24aa', // uses github-actions-parser v0.23.0
1817
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911', // v3.0.2
1918
'dawidd6/action-download-artifact@af92a8455a59214b7b932932f2662fdefbd78126', // v2.15.0

.github/workflows/60-days-stale-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
stale-issue-label: 'stale'
2525
stale-pr-label: 'stale'
2626
exempt-pr-labels: 'never-stale'
27-
exempt-issue-labels: 'never-stale, help wanted, waiting for review'
27+
exempt-issue-labels: 'never-stale,help wanted,waiting for review'

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: automerge
1+
name: Automerge
22

33
# **What it does**: Pull requests with label "automerge" or "autosquash" will automatically merge.
44
# **Why we have it**: While now this is a feature built into GitHub, we still use it as part of other automation.

.github/workflows/autoupdate-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: autoupdate branch
1+
name: Autoupdate branch
22

33
# **What it does**: Any pull requests with "autoupdate" label will get main branch updates.
44
# **Why we have it**: Our repo-sync automation relies on it.

.github/workflows/browser-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Node
2828
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2929
with:
30-
node-version: 16.8.x
30+
node-version: 16.13.x
3131
cache: npm
3232

3333
- name: Install dependencies

.github/workflows/build-docker-image.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ on:
99
branches:
1010
- main
1111
pull_request:
12+
paths:
13+
- .npmrc
14+
- Dockerfile
15+
- package.json
16+
- package-lock.json
17+
- next.config.js
18+
- tsconfig.json
19+
- next-env.d.ts
20+
- .github/workflows/build-docker-image.yml
1221

1322
env:
1423
CI: true

.github/workflows/check-all-english-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Node
2727
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2828
with:
29-
node-version: 16.8.x
29+
node-version: 16.13.x
3030
cache: npm
3131
- name: npm ci
3232
run: npm ci

.github/workflows/check-broken-links-github-github.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup Node
4242
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
4343
with:
44-
node-version: 16.8.x
44+
node-version: 16.13.x
4545
cache: npm
4646

4747
- name: Install Node.js dependencies

.github/workflows/content-changes-table-comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Setup Node
4444
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
4545
with:
46-
node-version: 16.8.x
46+
node-version: 16.13.x
4747
cache: npm
4848

4949
- name: Install temporary dependencies
@@ -116,7 +116,7 @@ jobs:
116116
issue-number: ${{ github.event.pull_request.number }}
117117
body: |
118118
<!-- MODIFIED_CONTENT_LINKING_COMMENT -->
119-
## Automatically generated comment ℹ️
119+
## Automatically generated comment ℹ️
120120
**This comment is automatically generated and will be overwritten every time changes are committed to this branch.**
121121
122122
The table contains an overview of files in the `content` directory that have been changed in this pull request. It's provided to make it easy to review your changes on the staging site. Please note that changes to the `data` directory will not show up in this table.

.github/workflows/crowdin-cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node
2424
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2525
with:
26-
node-version: 16.8.x
26+
node-version: 16.13.x
2727
cache: npm
2828

2929
- name: Install dependencies

.github/workflows/crowdin.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
name: Sync with Crowdin
1515
if: github.repository == 'github/docs-internal'
1616
runs-on: ubuntu-latest
17+
# A sync's average run time is ~3.2 hours.
18+
# This sets a maximum execution time of 300 minutes (5 hours) to prevent the workflow from running longer than necessary.
19+
timeout-minutes: 300
1720
steps:
1821
- name: Checkout
1922
uses: actions/checkout@1e204e9a9253d643386038d443f96446fa156a97
@@ -24,8 +27,13 @@ jobs:
2427
- name: Remove unwanted git hooks
2528
run: rm .git/hooks/post-checkout
2629

30+
- name: Remove all translations
31+
run: |
32+
git rm -rf --quiet translations/*/content
33+
git rm -rf --quiet translations/*/data
34+
2735
- name: Sync
28-
uses: crowdin/github-action@d7f217268068f1244883a993379d62d816f84f25
36+
uses: crowdin/github-action@d0622816ed4f4744db27d04374b2cef6867f7bed
2937
with:
3038
# This option enables the transfer of existing translations in this project to Crowdin.
3139
# We explicitly set this to `false` since we only want to use the downloaded translations managed by Crowdin.
@@ -59,3 +67,24 @@ jobs:
5967
# See https://crowdin.com/settings#api-key to generate a token
6068
# This token was created by logging into Crowdin with the octoglot user
6169
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
70+
71+
# When the maximum execution time is reached for this job, Actions cancels the workflow run.
72+
# This emits a notification for the first responder to triage.
73+
- name: Send Slack notification if workflow is cancelled
74+
uses: someimportantcompany/github-actions-slack-message@f8d28715e7b8a4717047d23f48c39827cacad340
75+
if: cancelled()
76+
with:
77+
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
78+
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
79+
color: failure
80+
text: The last Crowdin Sync run for ${{github.repository}} was cancelled. Please try running the workflow manually; see https://github.com/${{github.repository}}/actions/workflows/crowdin.yml
81+
82+
# Emit a notification for the first responder to triage if the workflow failed.
83+
- name: Send Slack notification if workflow failed
84+
uses: someimportantcompany/github-actions-slack-message@f8d28715e7b8a4717047d23f48c39827cacad340
85+
if: failure()
86+
with:
87+
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
88+
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
89+
color: failure
90+
text: The last Crowdin Sync run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions/workflows/crowdin.yml

.github/workflows/docs-review-collect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node
2626
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2727
with:
28-
node-version: 16.8.x
28+
node-version: 16.13.x
2929
cache: npm
3030

3131
- name: Install dependencies

.github/workflows/enterprise-dates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Setup Node
3838
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
3939
with:
40-
node-version: 16.8.x
40+
node-version: 16.13.x
4141
cache: npm
4242

4343
- name: Install Node.js dependencies

.github/workflows/enterprise-release-sync-search-index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup Node
4545
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
4646
with:
47-
node-version: 16.8.x
47+
node-version: 16.13.x
4848
cache: npm
4949

5050
- name: Install dependencies

.github/workflows/js-lint.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ on:
1010
branches:
1111
- main
1212
pull_request:
13+
paths:
14+
- '**.js'
15+
- '**.mjs'
16+
- '**.ts'
17+
- '**.tsx'
18+
# In case something like eslint or tsc or prettier upgrades
19+
- 'package-lock.json'
20+
# Ultimately, for debugging this workflow itself
21+
- .github/workflows/js-lint.yml
1322

1423
jobs:
1524
lint:
@@ -21,11 +30,14 @@ jobs:
2130
- name: Setup node
2231
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2332
with:
24-
node-version: 16.8.x
33+
node-version: 16.13.x
2534
cache: npm
2635

2736
- name: Install dependencies
2837
run: npm ci
2938

3039
- name: Run linter
3140
run: npm run lint
41+
42+
- name: Run TypeScript
43+
run: npm run tsc

.github/workflows/link-check-dotcom.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup node
2424
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2525
with:
26-
node-version: 16.8.x
26+
node-version: 16.13.x
2727
cache: npm
2828

2929
- name: Install

.github/workflows/link-check-ghae.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup node
2424
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2525
with:
26-
node-version: 16.8.x
26+
node-version: 16.13.x
2727
cache: npm
2828

2929
- name: Install

.github/workflows/link-check-ghec.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 'Link Checker: Enterprise Cloud'
2+
3+
# **What it does**: This checks links for GHEC version of docs.
4+
# **Why we have it**: We want to know if links break.
5+
# **Who does it impact**: Docs content.
6+
7+
on:
8+
workflow_dispatch:
9+
push:
10+
branches:
11+
- main
12+
pull_request:
13+
14+
jobs:
15+
build:
16+
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@1e204e9a9253d643386038d443f96446fa156a97
20+
21+
- name: Setup node
22+
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
23+
with:
24+
node-version: 16.13.x
25+
cache: npm
26+
27+
- name: Install
28+
run: npm ci
29+
30+
- name: Build
31+
run: npm run build
32+
33+
- name: 'Link check: Enterprise Cloud'
34+
env:
35+
DOCS_VERSION: 'enterprise-cloud'
36+
run: npm run link-check

.github/workflows/link-check-ghes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup node
2424
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2525
with:
26-
node-version: 16.8.x
26+
node-version: 16.13.x
2727
cache: npm
2828

2929
- name: Install

.github/workflows/move-ready-to-merge-pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
permissions:
1313
pull-requests: write
14+
issues: write
1415

1516
jobs:
1617
unmark_for_review:

.github/workflows/open-enterprise-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node
2222
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2323
with:
24-
node-version: 16.8.x
24+
node-version: 16.13.x
2525
cache: npm
2626

2727
- name: Install dependencies

.github/workflows/openapi-decorate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup node
3232
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
3333
with:
34-
node-version: 16.8.x
34+
node-version: 16.13.x
3535
cache: npm
3636

3737
- name: Install dependencies

.github/workflows/openapi-schema-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup node
3535
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
3636
with:
37-
node-version: 16.8.x
37+
node-version: 16.13.x
3838
cache: npm
3939

4040
- name: Install dependencies

.github/workflows/pa11y.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Node
2020
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2121
with:
22-
node-version: 16.8.x
22+
node-version: 16.13.x
2323
cache: npm
2424

2525
- name: Install dependencies

.github/workflows/ping-staging-apps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup node
2121
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2222
with:
23-
node-version: 16.8.x
23+
node-version: 16.13.x
2424
cache: npm
2525
- name: npm ci
2626
run: npm ci

.github/workflows/prod-build-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup node
3737
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
3838
with:
39-
node-version: 16.8.x
39+
node-version: 16.13.x
4040
cache: npm
4141

4242
# Required for `npm pkg ...` command support

.github/workflows/ready-for-doc-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Node
2121
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2222
with:
23-
node-version: 16.8.x
23+
node-version: 16.13.x
2424
cache: npm
2525

2626
- name: Install dependencies

.github/workflows/remove-stale-staging-resources.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Node
3030
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
3131
with:
32-
node-version: 16.8.x
32+
node-version: 16.13.x
3333
cache: npm
3434

3535
- name: Install dependencies
@@ -51,7 +51,7 @@ jobs:
5151
- name: Setup Node
5252
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
5353
with:
54-
node-version: 16.8.x
54+
node-version: 16.13.x
5555
cache: npm
5656

5757
- name: Install dependencies

.github/workflows/remove-unused-assets.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ jobs:
2626
- name: Setup Node
2727
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
2828
with:
29-
node-version: 16.8.x
29+
node-version: 16.13.x
3030
cache: npm
3131
- name: npm ci
3232
run: npm ci
3333
- name: Run scripts
3434
run: |
3535
script/remove-unused-assets.js > results.md
36-
script/remove-extraneous-translation-files.js
3736
- name: Get script results to use in PR body
3837
id: results
3938
uses: juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512

0 commit comments

Comments
 (0)