Move all workflow runners to ubuntu-latest (#57506)
This commit is contained in:
2
.github/workflows/article-api-docs.yml
vendored
2
.github/workflows/article-api-docs.yml
vendored
@@ -18,7 +18,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-content-linter-rules-docs:
|
check-content-linter-rules-docs:
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
2
.github/workflows/content-lint-markdown.yml
vendored
2
.github/workflows/content-lint-markdown.yml
vendored
@@ -20,7 +20,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
lint-content:
|
lint-content:
|
||||||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-content-linter-rules-docs:
|
check-content-linter-rules-docs:
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
count-translation-corruptions:
|
count-translation-corruptions:
|
||||||
if: github.repository == 'github/docs-internal'
|
if: github.repository == 'github/docs-internal'
|
||||||
runs-on: ubuntu-20.04-xl
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout English repo
|
- name: Checkout English repo
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
generate-query-lists:
|
generate-query-lists:
|
||||||
if: github.repository == 'github/docs-internal'
|
if: github.repository == 'github/docs-internal'
|
||||||
runs-on: ubuntu-20.04-xl
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository code
|
- name: Checkout repository code
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
2
.github/workflows/headless-tests.yml
vendored
2
.github/workflows/headless-tests.yml
vendored
@@ -25,7 +25,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
playwright-tests:
|
playwright-tests:
|
||||||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
# When we're comfortable a11y tests aren't generating false positives and helping,
|
# When we're comfortable a11y tests aren't generating false positives and helping,
|
||||||
# let's remove the matrix and just run playwright in a single job.
|
# let's remove the matrix and just run playwright in a single job.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
index-autocomplete-elasticsearch:
|
index-autocomplete-elasticsearch:
|
||||||
if: ${{ github.repository == 'github/docs-internal' }}
|
if: ${{ github.repository == 'github/docs-internal' }}
|
||||||
runs-on: ubuntu-20.04-xl
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dryRunElasticsearchIndexes:
|
dryRunElasticsearchIndexes:
|
||||||
runs-on: ubuntu-20.04-xl
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'github/docs-internal'
|
if: github.repository == 'github/docs-internal'
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
|
|||||||
2
.github/workflows/index-general-search.yml
vendored
2
.github/workflows/index-general-search.yml
vendored
@@ -98,7 +98,7 @@ jobs:
|
|||||||
needs: figureOutMatrix
|
needs: figureOutMatrix
|
||||||
name: Update indexes
|
name: Update indexes
|
||||||
if: ${{ github.repository == 'github/docs-internal' && needs.figureOutMatrix.outputs.matrix != '[]' }}
|
if: ${{ github.repository == 'github/docs-internal' && needs.figureOutMatrix.outputs.matrix != '[]' }}
|
||||||
runs-on: ubuntu-20.04-xl
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
# When it's only English (i.e. a simple array of ['en']), this value
|
# When it's only English (i.e. a simple array of ['en']), this value
|
||||||
|
|||||||
2
.github/workflows/keep-caches-warm.yml
vendored
2
.github/workflows/keep-caches-warm.yml
vendored
@@ -26,7 +26,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
keep-caches-warm:
|
keep-caches-warm:
|
||||||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
2
.github/workflows/link-check-daily.yml
vendored
2
.github/workflows/link-check-daily.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
check_all_english_links:
|
check_all_english_links:
|
||||||
name: Check all links
|
name: Check all links
|
||||||
if: github.repository == 'github/docs-internal'
|
if: github.repository == 'github/docs-internal'
|
||||||
runs-on: ubuntu-20.04-xl
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check that gh CLI is installed
|
- name: Check that gh CLI is installed
|
||||||
run: gh --version
|
run: gh --version
|
||||||
|
|||||||
2
.github/workflows/link-check-on-pr.yml
vendored
2
.github/workflows/link-check-on-pr.yml
vendored
@@ -22,7 +22,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-links:
|
check-links:
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
2
.github/workflows/lint-code.yml
vendored
2
.github/workflows/lint-code.yml
vendored
@@ -20,7 +20,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
lint-code:
|
lint-code:
|
||||||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
lint-entire-content-data:
|
lint-entire-content-data:
|
||||||
name: Lint entire content and data directories
|
name: Lint entire content and data directories
|
||||||
if: github.repository == 'github/docs-internal'
|
if: github.repository == 'github/docs-internal'
|
||||||
runs-on: ubuntu-20.04-xl
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check that gh CLI is installed
|
- name: Check that gh CLI is installed
|
||||||
run: gh --version
|
run: gh --version
|
||||||
|
|||||||
4
.github/workflows/local-dev.yml
vendored
4
.github/workflows/local-dev.yml
vendored
@@ -16,7 +16,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
local-dev:
|
local-dev:
|
||||||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
PLAYWRIGHT_RETRIES: 0
|
PLAYWRIGHT_RETRIES: 0
|
||||||
TEST_EARLY_ACCESS: ${{ github.repository == 'github/docs-internal' }}
|
TEST_EARLY_ACCESS: ${{ github.repository == 'github/docs-internal' }}
|
||||||
# workaround for https://github.com/nodejs/node/issues/59364 as of 22.18.0
|
# workaround for https://github.com/nodejs/node/issues/59364 as of 22.18.0
|
||||||
NODE_OPTIONS: '--no-experimental-strip-types'
|
NODE_OPTIONS: '--no-experimental-strip-types --max-old-space-size=8192'
|
||||||
run: npm run playwright-test -- playwright-local-dev
|
run: npm run playwright-test -- playwright-local-dev
|
||||||
|
|
||||||
- name: Start server in the background
|
- name: Start server in the background
|
||||||
|
|||||||
2
.github/workflows/readability.yml
vendored
2
.github/workflows/readability.yml
vendored
@@ -25,7 +25,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
readability-analysis:
|
readability-analysis:
|
||||||
if: github.repository == 'github/docs-internal'
|
if: github.repository == 'github/docs-internal'
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo with full history
|
- name: Check out repo with full history
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
2
.github/workflows/sync-openapi.yml
vendored
2
.github/workflows/sync-openapi.yml
vendored
@@ -27,7 +27,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
generate-decorated-files:
|
generate-decorated-files:
|
||||||
if: github.repository == 'github/docs-internal'
|
if: github.repository == 'github/docs-internal'
|
||||||
runs-on: ubuntu-20.04-xl
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository code
|
- name: Checkout repository code
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
2
.github/workflows/test-changed-content.yml
vendored
2
.github/workflows/test-changed-content.yml
vendored
@@ -21,7 +21,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-changed-content:
|
test-changed-content:
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }}
|
if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }}
|
||||||
steps:
|
steps:
|
||||||
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
|
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
|
||||||
|
|||||||
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@@ -27,10 +27,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
# Run on ubuntu-20.04-xl if the private repo or ubuntu-latest if the public repo
|
|
||||||
# See pull # 17442 in the private repo for context
|
|
||||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
validate_github_github_docs_urls:
|
validate_github_github_docs_urls:
|
||||||
name: Validate github/github docs URLs
|
name: Validate github/github docs URLs
|
||||||
if: github.repository == 'github/docs-internal'
|
if: github.repository == 'github/docs-internal'
|
||||||
runs-on: ubuntu-20.04-xl
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo's default branch
|
- name: Check out repo's default branch
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
"cmp-files": "tsx src/workflows/cmp-files.ts",
|
"cmp-files": "tsx src/workflows/cmp-files.ts",
|
||||||
"content-changes-table-comment": "tsx src/workflows/content-changes-table-comment.ts",
|
"content-changes-table-comment": "tsx src/workflows/content-changes-table-comment.ts",
|
||||||
"copy-fixture-data": "tsx src/tests/scripts/copy-fixture-data.ts",
|
"copy-fixture-data": "tsx src/tests/scripts/copy-fixture-data.ts",
|
||||||
"count-translation-corruptions": "tsx src/languages/scripts/count-translation-corruptions.ts",
|
"count-translation-corruptions": "cross-env NODE_OPTIONS=--max-old-space-size=8192 tsx src/languages/scripts/count-translation-corruptions.ts",
|
||||||
"create-enterprise-issue": "tsx src/ghes-releases/scripts/create-enterprise-issue.ts",
|
"create-enterprise-issue": "tsx src/ghes-releases/scripts/create-enterprise-issue.ts",
|
||||||
"debug": "cross-env NODE_ENV=development ENABLED_LANGUAGES=en nodemon --inspect src/frame/server.ts",
|
"debug": "cross-env NODE_ENV=development ENABLED_LANGUAGES=en nodemon --inspect src/frame/server.ts",
|
||||||
"delete-orphan-translation-files": "tsx src/workflows/delete-orphan-translation-files.ts",
|
"delete-orphan-translation-files": "tsx src/workflows/delete-orphan-translation-files.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user