Skip to content

Commit 18a55c1

Browse files
authored
Merge branch 'main' into editorconfig
2 parents 8542383 + 696c084 commit 18a55c1

6,110 files changed

Lines changed: 46062 additions & 9234 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/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@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f', //actions/checkout@v2.3.4
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@af4072615903a8b031f986d25b1ae3bf45ec44d4', //actions/stale@v3.0.13
1814
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
1915
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911',
2016
'docker://chinthakagodawita/autoupdate-action:v1',

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8
10+
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
1111
with:
12-
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
1313
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity.'
1414
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity.'
1515
days-before-stale: 60

.github/workflows/browser-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# Even if if doesn't do anything
2727
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
2828
name: Checkout
29-
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
29+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
3030

3131
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
3232
name: Install

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
if: github.repository == 'github/docs-internal'
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
13+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
1414
- name: npm ci
1515
run: npm ci
1616
- name: npm run build

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
14+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
1515
- uses: github/codeql-action/init@v1
1616
with:
1717
languages: javascript # comma separated list of values from {go, python, javascript, java, cpp, csharp} (not YET ruby, sorry!)

.github/workflows/crowdin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
15+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
1616

1717
- name: Sync
1818
uses: crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: checkout
13-
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
13+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
1414
- uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
1515
with:
1616
node-version: 14.x
1717
- name: cache node modules
18-
uses: actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe
18+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
1919
with:
2020
path: ~/.npm
2121
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.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/js-lint.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Lint JS
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches-ignore:
10+
- translations
11+
12+
jobs:
13+
see_if_should_skip:
14+
runs-on: ubuntu-latest
15+
16+
outputs:
17+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
18+
steps:
19+
- id: skip_check
20+
uses: fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289
21+
with:
22+
cancel_others: 'false'
23+
github_token: ${{ github.token }}
24+
paths: '["**/*.js", "package*.json", ".github/workflows/js-lint.yml"]'
25+
26+
lint:
27+
runs-on: ubuntu-latest
28+
needs: see_if_should_skip
29+
if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
30+
steps:
31+
- name: Check out repo
32+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
33+
34+
- name: Setup node
35+
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
36+
with:
37+
node-version: 14.x
38+
39+
- name: Get npm cache directory
40+
id: npm-cache
41+
run: |
42+
echo "::set-output name=dir::$(npm config get cache)"
43+
44+
- name: Cache node modules
45+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
46+
with:
47+
path: ${{ steps.npm-cache.outputs.dir }}
48+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
49+
restore-keys: |
50+
${{ runner.os }}-node-
51+
52+
- name: Install dependencies
53+
run: npm ci
54+
55+
- name: Run linter
56+
run: npx standard
57+
58+
- name: Check dependencies
59+
run: npm run check-deps

.github/workflows/merged-notification.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
name: Merged notification
12
on:
23
pull_request_target:
34
types: ['closed']
45

56
jobs:
67
comment:
7-
if: github.event.repository.private == false && github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch
8+
if: github.repository == 'github/docs' && github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch
89
runs-on: ubuntu-latest
910
steps:
1011
- uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9

0 commit comments

Comments
 (0)