Skip to content

Commit 36bf562

Browse files
authored
Merge branch 'main' into 3634-dependabot-combined-notification
2 parents cf1a0e7 + d0bce8f commit 36bf562

545 files changed

Lines changed: 34308 additions & 18666 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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ module.exports = [
99
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9', //actions/script@v3.0.0
1010
'actions/labeler@5f867a63be70efff62b767459b009290364495eb', //actions/labeler@v2.2.0
1111
'actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e', //actions/setup-node@v2.1.4
12-
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526', //actions/setup-ruby@v1.1.2
13-
'actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4', //actions/stale@v3.0.13
12+
'ruby/setup-ruby@fdcfbcf14ec9672f6f615cb9589a1bc5dd69d262', //ruby/setup-ruby@vv1.64.1
13+
'actions/stale@9d6f46564a515a9ea11e7762ab3957ee58ca50da', //actions/stale@v3.0.16
1414
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
1515
'crykn/copy_folder_to_another_repo_action@0282e8b9fef06de92ddcae9fe6cb44df6226646c',
16-
'cschleiden/actions-linter@43fd4e08e52ed40c0e2782dc2425694388851576',
16+
'cschleiden/actions-linter@0ff16d6ac5103cca6c92e6cbc922b646baaea5be',
1717
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911',
1818
'docker://chinthakagodawita/autoupdate-action:v1',
1919
'fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289',
2020
'github/codeql-action/analyze@v1',
2121
'github/codeql-action/init@v1',
22-
'ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb',
22+
'ianwalter/puppeteer-container@2466ba8ecf689ccf4e5dfadeff3ac2db227b2e17',
2323
'juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8',
2424
'juliangruber/find-pull-request-action@2fc55e82a6d5d36fe1e7f1848f7e64fd02d99de9',
2525
'juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512',
2626
'lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8',
27-
'pascalgn/automerge-action@c9bd182',
27+
'pascalgn/automerge-action@c9bd1823770819dc8fb8a5db2d11a3a95fbe9b07', //pascalgn/automerge@0.12.0
2828
'peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326',
2929
'peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd',
3030
'peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
11+
- uses: actions/stale@9d6f46564a515a9ea11e7762ab3957ee58ca50da
1212
with:
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}
1414
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity.'

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: (contains(github.event.pull_request.labels.*.name, 'automerge') || contains(github.event.pull_request.labels.*.name, 'autosquash')) && (github.repository == 'github/docs-internal' || github.repository == 'github/docs')
2424
steps:
2525
- name: automerge
26-
uses: 'pascalgn/automerge-action@c9bd182'
26+
uses: 'pascalgn/automerge-action@c9bd1823770819dc8fb8a5db2d11a3a95fbe9b07'
2727
env:
2828
GITHUB_TOKEN: '${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}'
2929
MERGE_METHOD_LABELS: 'automerge=merge,autosquash=squash'

.github/workflows/browser-test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,20 @@ jobs:
3131
name: Checkout
3232
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
3333

34+
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
35+
name: Setup Node
36+
uses: actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e
37+
with:
38+
node-version: 14.x
39+
3440
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
3541
name: Install
36-
uses: ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb
42+
uses: ianwalter/puppeteer-container@2466ba8ecf689ccf4e5dfadeff3ac2db227b2e17
3743
with:
3844
args: npm ci
3945

4046
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
4147
name: Test
42-
uses: ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb
48+
uses: ianwalter/puppeteer-container@2466ba8ecf689ccf4e5dfadeff3ac2db227b2e17
4349
with:
4450
args: npm run browser-test

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Remove unused assets
22

3-
env:
4-
FREEZE: ${{ secrets.FREEZE }}
5-
63
on:
74
schedule:
85
- cron: '20 15 * * 0' # run every Sunday at 20:15 UTC / 12:15 PST
96

7+
env:
8+
FREEZE: ${{ secrets.FREEZE }}
9+
1010
jobs:
1111
remove_unused_assets:
1212
name: Remove unused assets

.github/workflows/repo-freeze-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616

1717
jobs:
1818
check-freezer:
19-
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
19+
if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }}
2020
name: Prevent merging during deployment freezes
2121
runs-on: ubuntu-latest
2222
steps:

.github/workflows/repo-sync-stalls.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: Repo Sync Stalls
2+
23
on:
34
workflow_dispatch:
45
schedule:
56
- cron: '0 */2 * * *'
7+
8+
env:
9+
FREEZE: ${{ secrets.FREEZE }}
10+
611
jobs:
712
check-freezer:
813
name: Check for deployment freezes
@@ -13,6 +18,7 @@ jobs:
1318
run: |
1419
echo 'The repo is currently frozen! Exiting this workflow.'
1520
exit 1 # prevents further steps from running
21+
1622
repo-sync-stalls:
1723
runs-on: ubuntu-latest
1824
steps:

.github/workflows/triage-stale-check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
12+
- uses: actions/stale@9d6f46564a515a9ea11e7762ab3957ee58ca50da
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
stale-pr-message: 'A stale label has been added to this pull request because it has been open 7 days with no activity. To keep this PR open, add a comment or push a commit within 3 days.'
@@ -21,12 +21,13 @@ jobs:
2121
if: github.repository == 'github/docs'
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
24+
- uses: actions/stale@9d6f46564a515a9ea11e7762ab3957ee58ca50da
2525
with:
2626
repo-token: ${{ secrets.GITHUB_TOKEN }}
2727
stale-pr-message: 'This is a gentle bump for the docs team that this PR is waiting for review.'
2828
days-before-pr-stale: 14
2929
days-before-pr-close: -1 # Never close
30+
remove-stale-when-updated: false
3031
only-labels: 'waiting for review'
3132
# The hope is that by setting the stale-pr-label to the same label
3233
# as the label that the stale check looks for, this will result in

.github/workflows/update-graphql-files.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
name: Update GraphQL files
22

3-
# **IMPORTANT:** Do not change the FREEZE environment variable set here.
4-
# This workflow runs every hour. To temporarily disable it (for example, during
5-
# a docs freeze), add a secret to the docs repo settings called `FREEZE`
6-
# with a value of `true`. To reenable GraphQL updates, delete the secret in
7-
# the repo settings. The env variable here will evaluate whether the secret exists.
8-
env:
9-
FREEZE: ${{ secrets.FREEZE }}
10-
113
on:
124
workflow_dispatch:
135
schedule:
146
- cron: '20 16 * * *' # run every day at 16:20 UTC / 8:20 PST
157

8+
# **IMPORTANT:** Do not change the FREEZE environment variable set here!
9+
# This workflow runs on a recurring basis. To temporarily disable it (e.g.,
10+
# during a docs deployment freeze), add an Actions Secret to the repo settings
11+
# called `FREEZE` with a value of `true`. To re-enable GraphQL updates, simply
12+
# delete that Secret from the repo settings. The environment variable here
13+
# will duplicate that Secret's value for later evaluation.
14+
env:
15+
FREEZE: ${{ secrets.FREEZE }}
16+
1617
jobs:
1718
update_graphql_files:
1819
if: github.repository == 'github/docs-internal'
@@ -25,7 +26,7 @@ jobs:
2526
- name: Checkout
2627
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
2728
- name: Set up Ruby
28-
uses: actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526
29+
uses: ruby/setup-ruby@fdcfbcf14ec9672f6f615cb9589a1bc5dd69d262
2930
with:
3031
ruby-version: '2.4'
3132
- name: Install Ruby dependencies
@@ -37,7 +38,7 @@ jobs:
3738
- name: Run updater scripts
3839
env:
3940
# need to use a token from a user with access to github/github for this step
40-
GITHUB_TOKEN: ${{ secrets.RACHMARI_REPO_WORKFLOW }}
41+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT }}
4142
run: |
4243
script/graphql/update-files.js
4344
- name: Create pull request
@@ -53,7 +54,7 @@ jobs:
5354
syncs up the GraphQL data in this repo.\n\n
5455
If CI passes, this PR will be auto-merged. :green_heart:\n\n
5556
If CI does not pass or other problems arise, contact #docs-engineering on slack."
56-
labels: automerge
57+
labels: automerge,autoupdate
5758
branch: graphql-schema-update
5859
- if: ${{ failure() }}
5960
name: Delete remote branch (if previous steps failed)
@@ -65,5 +66,13 @@ jobs:
6566
name: Approve
6667
uses: juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8
6768
with:
68-
github-token: ${{ secrets.GITHUB_TOKEN }}
69+
github-token: ${{ secrets.DOCUBOT_REPO_PAT }}
6970
number: ${{ steps.create-pull-request.outputs.pull-request-number }}
71+
- name: Send Slack notification if workflow fails
72+
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
73+
if: failure()
74+
with:
75+
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
76+
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
77+
color: failure
78+
text: The last update-graphql-files run for ${{github.repository}} failed. See https://github.com/github/${{github.repository}}/actions/workflows/update-graphql-files.yml

.github/workflows/workflow-lint.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ name: Lint workflows
22

33
on:
44
workflow_dispatch:
5-
# push:
6-
# branches:
7-
# - main
8-
# pull_request:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- '.github/workflows/*.yml'
10+
pull_request:
11+
paths:
12+
- '.github/workflows/*.yml'
913

1014
jobs:
1115
lint:
@@ -16,6 +20,6 @@ jobs:
1620
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
1721

1822
- name: Run linter
19-
uses: cschleiden/actions-linter@43fd4e08e52ed40c0e2782dc2425694388851576
23+
uses: cschleiden/actions-linter@0ff16d6ac5103cca6c92e6cbc922b646baaea5be
2024
with:
2125
workflows: '[".github/workflows/*.yml"]'

0 commit comments

Comments
 (0)