Skip to content

Commit e1f3f64

Browse files
authored
Merge branch 'main' into hidden-docs-alt
2 parents f410fd1 + cddf7a0 commit e1f3f64

153 files changed

Lines changed: 1144 additions & 565 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.

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.github/allowed-actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
module.exports = [
77
'actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16', //actions/cache@v2.1.2
8-
'actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675', //actions/checkout@v2.3.3
8+
'actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f', //actions/checkout@v2.3.4
99
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9', //actions/script@v3.0.0
1010
'actions/labeler@5f867a63be70efff62b767459b009290364495eb', //actions/labeler@v2.2.0
1111
'actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d', //actions/setup-node@v1.4.4
1212
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526', //actions/setup-ruby@v1.1.2
13-
'actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8', //actions/stale@v3.0.12
13+
'actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4', //actions/stale@v3.0.13
1414
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
1515
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911',
1616
'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/automerge-dependencies.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
name: Auto Merge Dependency Updates
22

33
on:
4-
- pull_request
5-
- pull_request_review
4+
pull_request:
5+
paths:
6+
- "package*.json"
7+
- "Gemfile*"
8+
- "Dockerfile"
9+
- ".github/workflows/**"
10+
pull_request_review:
11+
types:
12+
- edited
13+
- submitted
614

715
jobs:
816
run:

.github/workflows/browser-test.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,18 @@ jobs:
2020
paths: '[".github/workflows/browser-test.yml","assets/**", "content/**", "data/**", "includes/**", "javascripts/**", "jest-puppeteer.config.js", "jest.config.js", "layouts/**", "lib/**", "middleware/**", "package-lock.json", "package.json", "server.js", "translations/**", "webpack.config.js"]'
2121
build:
2222
needs: see_if_should_skip
23+
if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
2324
runs-on: ubuntu-latest
2425
steps:
25-
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
26-
# Even if if doesn't do anything
27-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
28-
name: Checkout
29-
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
26+
- name: Checkout
27+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
3028

31-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
32-
name: Install
29+
- name: Install
3330
uses: ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb
3431
with:
3532
args: npm ci
3633

37-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
38-
name: Test
34+
- name: Test
3935
uses: ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb
4036
with:
4137
args: npm run browser-test

.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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

.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

0 commit comments

Comments
 (0)