Skip to content

Commit bec1c68

Browse files
authored
Merge branch 'github:main' into main
2 parents 2c23268 + 4439629 commit bec1c68

File tree

1,784 files changed

+32746
-50226
lines changed

Some content is hidden

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

1,784 files changed

+32746
-50226
lines changed

.github/actions-scripts/enterprise-server-issue-templates/deprecation-issue.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ For each language, upload the new file to Azure blob storage in the `enterprise`
158158

159159
After uploading the new files, you will need to purge the Fastly cache for the single page. From Okta, go to Fastly and select `docs`. Click `Purge` then `Purge URL`. If you need to purge a whole path, just do a `Purge All`
160160

161-
![](/assets/images/fastly_purge.jpg)
161+
![](/contributing/images/fastly_purge.jpg)
162162

163163
Enter the URL or path and do a soft purge.
164164

165-
![](/assets/images/fastly_purge_url.jpg)
165+
![](/contributing/images/fastly_purge_url.jpg)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Clone and add docs-early-access
2+
3+
description: Clone docs-early-access and copy its content into the repo
4+
5+
inputs:
6+
token:
7+
description: PAT
8+
required: true
9+
10+
runs:
11+
using: 'composite'
12+
steps:
13+
- name: Figure out which branch to checkout
14+
id: check-early-access
15+
env:
16+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
17+
GITHUB_TOKEN: ${{ inputs.token }}
18+
shell: bash
19+
run: node .github/actions-scripts/what-docs-early-access-branch.js
20+
21+
- name: Clone
22+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
23+
with:
24+
repository: github/docs-early-access
25+
token: ${{ inputs.token }}
26+
path: docs-early-access
27+
ref: ${{ steps.check-early-access.outputs.branch }}
28+
29+
- name: Merge docs-early-access repo's folders
30+
shell: bash
31+
run: |
32+
.github/actions-scripts/merge-early-access.sh
33+
rm -fr docs-early-access

.github/actions/node-npm-setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
- name: Setup Node.js
1616
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516
1717
with:
18-
node-version-file: '.node-version'
18+
node-version-file: 'package.json'
1919
cache: npm
2020

2121
- name: Install dependencies

.github/workflows/automerge-dependencies.yml renamed to .github/workflows/auto-close-dependencies.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: Auto Merge Dependency Updates
1+
name: Auto Close Open Source Dependency Updates
22

33
# **What it does**:
4-
# - automerge-internal: Automatically merge dependabot's pull requests in the internal repository.
54
# - close-external: Automatically close dependabot's pull requests in the open-source repository.
65
# **Why we have it**:
7-
# - automerge-internal: To keep our dependencies up-to-date, to avoid security issues.
86
# - close-external: To avoid duplicating updates against the internal repository.
97
# **Who does it impact**: It helps docs engineering focus on higher value work.
108

@@ -25,22 +23,6 @@ permissions:
2523
pull-requests: write
2624

2725
jobs:
28-
automerge-internal:
29-
if: >-
30-
${{
31-
github.repository == 'github/docs-internal' &&
32-
github.event.pull_request.number &&
33-
github.event.pull_request.base.ref == 'main' &&
34-
github.event.pull_request.user.login == 'dependabot[bot]' &&
35-
github.event.pull_request.state == 'open'
36-
}}
37-
runs-on: ubuntu-latest
38-
steps:
39-
- uses: tjenkinson/gh-action-auto-merge-dependency-updates@c47f6255e06f36e84201ee940466e731ffa6e885
40-
with:
41-
repo-token: ${{ secrets.GITHUB_TOKEN }}
42-
allowed-actors: dependabot[bot]
43-
4426
close-external:
4527
if: >-
4628
${{

.github/workflows/azure-preview-env-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
# Deploy ARM template is idempotent
202202
# Note: once the resources exist the image tag must change for a new deployment to occur (the image tag includes workflow run number, run attempt, as well as sha)
203203
- name: Run ARM deploy
204-
uses: azure/arm-deploy@841b12551939c88af8f6df767c24c38a5620fd0d
204+
uses: azure/arm-deploy@65ae74fb7aec7c680c88ef456811f353adae4d06
205205
with:
206206
resourceGroupName: ${{ secrets.PREVIEW_ENV_RESOURCE_GROUP }}
207207
subscriptionId: ${{ secrets.NONPROD_SUBSCRIPTION_ID }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Setup Node.js
5959
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516
6060
with:
61-
node-version-file: '.node-version'
61+
node-version-file: 'package.json'
6262
cache: npm
6363

6464
- name: Clone docs-early-access

.github/workflows/azure-staging-build-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Setup Node.js
7777
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516
7878
with:
79-
node-version-file: '.node-version'
79+
node-version-file: 'package.json'
8080
cache: npm
8181

8282
- name: Clone docs-early-access

.github/workflows/browser-test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: Setup Node.js
5555
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516
5656
with:
57-
node-version-file: '.node-version'
57+
node-version-file: 'package.json'
5858
cache: npm
5959

6060
- name: Install dependencies
@@ -65,6 +65,11 @@ jobs:
6565
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
6666
run: npm ci --include=optional
6767

68+
- uses: ./.github/actions/get-docs-early-access
69+
if: ${{ github.repository == 'github/docs-internal' }}
70+
with:
71+
token: ${{ secrets.DOCUBOT_REPO_PAT }}
72+
6873
- name: Cache nextjs build
6974
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
7075
with:

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,11 @@ jobs:
4444
# To prevent issues with cloning early access content later
4545
persist-credentials: 'false'
4646

47-
- name: Clone docs-early-access
48-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
47+
- uses: ./.github/actions/node-npm-setup
48+
49+
- uses: ./.github/actions/get-docs-early-access
4950
with:
50-
repository: github/docs-early-access
5151
token: ${{ secrets.DOCUBOT_REPO_PAT }}
52-
path: docs-early-access
53-
ref: main
54-
55-
- name: Merge docs-early-access repo's folders
56-
run: .github/actions-scripts/merge-early-access.sh
57-
58-
- uses: ./.github/actions/node-npm-setup
5952

6053
- name: Build server
6154
run: npm run build

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
34-
- uses: github/codeql-action/init@1ed1437484560351c5be56cf73a48a279d116b78
34+
- uses: github/codeql-action/init@32dc499307d133bb5085bae78498c0ac2cf762d5
3535
with:
3636
languages: javascript # comma separated list of values from {go, python, javascript, java, cpp, csharp, ruby}
37-
- uses: github/codeql-action/analyze@1ed1437484560351c5be56cf73a48a279d116b78
37+
- uses: github/codeql-action/analyze@32dc499307d133bb5085bae78498c0ac2cf762d5
3838
continue-on-error: true

0 commit comments

Comments
 (0)