Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/autoupdate-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/azure-prod-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: git lfs checkout

- name: Setup node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/browser-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: git lfs checkout

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-all-english-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Check out repo's default branch
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-broken-links-github-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/content-changes-table-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: .github/actions-scripts/get-preview-app-info.sh

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-translation-batch-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
git commit -m "Add crowdin translations" || echo "Nothing to commit"

- name: 'Setup node'
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-review-collect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/enterprise-dates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/enterprise-release-sync-search-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
token: ${{ secrets.DOCUBOT_REPO_PAT }}

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/link-check-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/open-enterprise-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openapi-decorate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
token: ${{ secrets.DOCUBOT_REPO_PAT }}

- name: Setup node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openapi-schema-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
42 changes: 36 additions & 6 deletions .github/workflows/orphaned-assets-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,27 @@ name: 'Orphaned assets check'
# **Who does it impact**: Docs content.

on:
pull_request:
push:
branches:
- gh-readonly-queue/main/**
workflow_dispatch:
schedule:
- cron: '13 10 * * *' # Once a day at 10:13 UTC

permissions:
contents: read

jobs:
orphaned-assets-check:
if: ${{ github.repository == 'github/docs-internal' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
with:
# Using a PAT is necessary so that the new commit will trigger the
# CI in the PR. (Events from GITHUB_TOKEN don't trigger new workflows.)
token: ${{ secrets.DOCUBOT_REPO_PAT }}

- name: Setup node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand All @@ -30,4 +34,30 @@ jobs:
run: npm ci

- name: Check for orphaned assets
run: ./script/find-orphaned-assets.mjs --verbose --exit
env:
# Needed for gh
GITHUB_TOKEN: ${{ secrets.DOCUBOT_REPO_PAT }}
run: |
set -e

./script/find-orphaned-assets.mjs | xargs git rm

# If nothing to commit, exit now. It's fine. No orphans.
git status | grep 'nothing to commit' && exit 0

# Replicated from the translation pipeline PR-maker Action
git config --global user.name "docubot"
git config --global user.email "67483024+docubot@users.noreply.github.com"

date=$(date '+%Y-%m-%d-%H-%M')
branchname=orphaned-assets-$date-$GITHUB_RUN_ID

git checkout -b $branchname
git commit -m "Delete orphaned assets $date"
git push origin $branchname

gh pr create \
--title "Delete orphaned assets ($date)" \
--body "Found with the find-orphaned-assets.mjs script" \
--repo github/docs-internal \
--label docs-content-fr
2 changes: 1 addition & 1 deletion .github/workflows/os-ready-for-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pa11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-lock-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ready-for-doc-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/remove-unused-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Checkout
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:

# Set up npm and run npm ci to run husky to get githooks for LFS
- name: Setup node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/sync-search-indices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
token: ${{ secrets.DOCS_BOT_FR }}

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand All @@ -77,6 +77,18 @@ jobs:
env:
VERSION: ${{ github.event.inputs.version }}
LANGUAGE: ${{ github.event.inputs.language }}
# We don't want or need the changelog entries in this context.
# Pages that display the content from these isn't included
# in search index bodies anyway.
CHANGELOG_DISABLED: true
# If a reusable, or anything in the `data/*` directory is deleted
# you might get a
#
# RenderError: Can't find the key 'site.data.reusables...' in the scope
#
# But that'll get fixed in the next translation pipeline. For now,
# let's just accept an empty string instead.
THROW_ON_EMPTY: false
run: npm run sync-search

- name: Update private docs repository search indexes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-search-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ jobs:
- name: Check out repo
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
with:
lfs: true
# Not all test suites need the LFS files. So instead, we opt to
# NOT clone them initially and instead, include them manually
# only for the test groups that we know need the files.
lfs: ${{ matrix.test-group == 'content' }}
# Enables cloning the Early Access repo later with the relevant PAT
persist-credentials: 'false'

Expand Down Expand Up @@ -99,6 +102,8 @@ jobs:
mv docs-early-access/data data/early-access
rm -r docs-early-access

# This is necessary when LFS files where cloned but does nothing
# if actions/checkout was run with `lfs:false`.
- name: Checkout LFS objects
run: git lfs checkout

Expand All @@ -118,7 +123,7 @@ jobs:
echo "${{ steps.get_diff_files.outputs.files }}" > get_diff_files.txt

- name: Setup node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/triage-unallowed-internal-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
token: ${{ secrets.DOCUBOT_REPO_PAT }}

- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-graphql-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Checkout
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: Setup Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236
with:
node-version: 16.14.x
cache: npm
Expand Down