Skip to content

Commit f8b5a2c

Browse files
authored
Merge branch 'main' into document-npm-run-build
2 parents 846278c + 3a019df commit f8b5a2c

File tree

7,397 files changed

+114328
-138750
lines changed

Some content is hidden

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

7,397 files changed

+114328
-138750
lines changed

.github/allowed-actions.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@
44
// can be added it this list.
55

66
module.exports = [
7-
'actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe',
8-
'actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16',
9-
'actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675',
10-
'actions/github-script@5d03ada4b0a753e9460b312e61cc4f8fdeacf163',
11-
'actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45',
12-
'actions/github-script@44b873bc975058192f5279ebe7579496381f575d',
13-
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9',
14-
'actions/labeler@5f867a63be70efff62b767459b009290364495eb',
15-
'actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d',
16-
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526',
17-
'actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8',
7+
'actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16', //actions/cache@v2.1.2
8+
'actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675', //actions/checkout@v2.3.3
9+
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9', //actions/script@v3.0.0
10+
'actions/labeler@5f867a63be70efff62b767459b009290364495eb', //actions/labeler@v2.2.0
11+
'actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d', //actions/setup-node@v1.4.4
12+
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526', //actions/setup-ruby@v1.1.2
13+
'actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8', //actions/stale@v3.0.12
1814
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
1915
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911',
2016
'docker://chinthakagodawita/autoupdate-action:v1',

.github/workflows/codeql.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88

99
jobs:
1010
build:
11-
12-
strategy:
13-
fail-fast: false
14-
1511
runs-on: ubuntu-latest
1612

1713
steps:
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: (Dry run) Algolia
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
updateIndices:
8+
name: (Dry run) Update indices
9+
if: github.repository == 'github/docs-internal'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout
13+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
14+
- uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
15+
with:
16+
node-version: 14.x
17+
- name: cache node modules
18+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
19+
with:
20+
path: ~/.npm
21+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.os }}-node-
24+
- name: npm ci
25+
run: npm ci
26+
- name: (Dry run) sync indices
27+
env:
28+
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
29+
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: npm run sync-search-dry-run

.github/workflows/first-responder-docs-content.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Check if the event originated from a team member
14-
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
14+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
1515
id: set-result
1616
with:
1717
github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
@@ -53,12 +53,12 @@ jobs:
5353

5454
first-responder-remove-pr:
5555
name: Remove PR from FR project board
56-
if: github.repository == 'github/docs-internal' && (github.event.label.name == 'docs-content-fr' && github.event.action == 'unlabeled') || github.event.action == 'closed'
56+
if: github.repository == 'github/docs-internal' && ((github.event.label.name == 'docs-content-fr' && github.event.action == 'unlabeled') || github.event.action == 'closed')
5757
runs-on: ubuntu-latest
5858

5959
steps:
6060
- name: Remove card from project
61-
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
61+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
6262
with:
6363
github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
6464
result-encoding: string

.github/workflows/send-eng-issues-to-backlog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- name: Add issues with engineering label to project board
1414
if: contains(github.event.issue.labels.*.name, 'engineering') || contains(github.event.issue.labels.*.name, 'design') || contains(github.event.issue.labels.*.name, 'Design')
15-
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
15+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
1616
with:
1717
github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
1818
script: |

.github/workflows/start-new-engineering-pr-workflow.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Start new engineering PR workflow
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, reopened]
66

77
jobs:
@@ -12,8 +12,7 @@ jobs:
1212
DRAFT_COLUMN_ID: 10095775
1313
REGULAR_COLUMN_ID: 10095779
1414
steps:
15-
- name:
16-
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
15+
- uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
1716
continue-on-error: true
1817
with:
1918
github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}

.github/workflows/sync-algolia-search-indices.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
node-version: 14.x
2020
- name: cache node modules
21-
uses: actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe
21+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
2222
with:
2323
path: ~/.npm
2424
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/test-translations.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,5 @@ jobs:
7777

7878
- name: Run tests
7979
run: npx jest tests/${{ matrix.test-group }}/
80+
env:
81+
NODE_OPTIONS: "--max_old_space_size=4096"

.github/workflows/test-windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ jobs:
4747

4848
- name: Run tests
4949
run: npx jest tests/${{ matrix.test-group }}/
50+
env:
51+
NODE_OPTIONS: "--max_old_space_size=4096"

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ jobs:
116116
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
117117
name: Run tests
118118
run: npx jest tests/${{ matrix.test-group }}/
119+
env:
120+
NODE_OPTIONS: "--max_old_space_size=4096"
119121

120122
- name: Send Slack notification if workflow fails
121123
uses: rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815

.github/workflows/translations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
branch: translations
2525
- if: ${{ steps.pr.outputs.number }}
2626
name: Check if already labeled
27-
uses: actions/github-script@5d03ada4b0a753e9460b312e61cc4f8fdeacf163
27+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
2828
id: has-label
2929
with:
3030
script: |
@@ -44,7 +44,7 @@ jobs:
4444
number: ${{ steps.pr.outputs.number }}
4545
- if: ${{ !steps.has-label.outputs.result }}
4646
name: Add automerge label
47-
uses: actions/github-script@5d03ada4b0a753e9460b312e61cc4f8fdeacf163
47+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
4848
with:
4949
github-token: ${{ secrets.GITHUB_TOKEN }}
5050
script: |

.github/workflows/triage-issue-comments.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212
- name: Check if the event originated from a team member
13-
uses: actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45
13+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
1414
id: is-internal-contributor
1515
with:
1616
github-token: ${{secrets.GITHUB_TOKEN}}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
543 KB
83.9 KB

content/README.md

Lines changed: 6 additions & 0 deletions

content/actions/guides/about-continuous-integration.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)