From a22c88ba79ad3564d152fd255be927e3ac8a7aa0 Mon Sep 17 00:00:00 2001 From: Thomas Dupoiron Date: Mon, 30 Sep 2024 17:23:12 +0200 Subject: [PATCH] Update runs-on value in GitHub workflows --- .github/workflows/add-review-template.yml | 2 +- .../alert-changed-branch-protections.yml | 2 +- .github/workflows/all-documents.yml | 2 +- .github/workflows/auto-close-dependencies.yml | 2 +- .../workflows/azure-preview-env-deploy-public.yml | 2 +- .github/workflows/azure-preview-env-deploy.yml | 2 +- .github/workflows/azure-preview-env-destroy.yml | 2 +- .github/workflows/azure-prod-build-deploy.yml | 2 +- .github/workflows/azure-staging-build-deploy.yml | 2 +- .../check-broken-links-github-github.yml | 2 +- .github/workflows/check-for-spammy-issues.yml | 2 +- .github/workflows/close-bad-repo-sync-prs.yml | 2 +- .github/workflows/close-dangling-prs.yml | 2 +- .github/workflows/close-on-invalid-label.yaml | 2 +- .github/workflows/codeowners-content-strategy.yml | 2 +- .github/workflows/codeowners-docs-engineering.yml | 2 +- .github/workflows/codeowners-legal.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/comment-release-note-info.yml | 2 +- .../confirm-internal-staff-work-in-docs.yml | 2 +- .../workflows/content-changes-table-comment.yml | 2 +- .github/workflows/content-lint-markdown.yml | 2 +- .github/workflows/content-linter-rules-docs.yml | 2 +- .github/workflows/copy-api-issue-to-internal.yml | 2 +- .../workflows/count-translation-corruptions.yml | 2 +- .../workflows/delete-orphan-translation-files.yml | 2 +- .github/workflows/docs-review-collect.yml | 2 +- .github/workflows/dont-delete-assets.yml | 2 +- .github/workflows/dont-delete-features.yml | 2 +- .github/workflows/enterprise-dates.yml | 2 +- .github/workflows/enterprise-release-issue.yml | 2 +- .../expertise-required-label-message.yml | 2 +- .../workflows/first-responder-v2-prs-collect.yml | 2 +- .../generate-code-scanning-query-lists.yml | 2 +- .github/workflows/headless-tests.yml | 2 +- .github/workflows/hubber-contribution-help.yml | 2 +- .../index-autocomplete-elasticsearch.yml | 2 +- .github/workflows/keep-caches-warm.yml | 2 +- .github/workflows/link-check-daily.yml | 2 +- .github/workflows/link-check-on-pr.yml | 2 +- .github/workflows/lint-code.yml | 2 +- .../lint-entire-content-data-markdown.yml | 2 +- .github/workflows/local-dev.yml | 2 +- .github/workflows/main-preview-docker-cache.yml | 2 +- .github/workflows/manually-purge-fastly.yml | 2 +- .github/workflows/merged-notification.yml | 2 +- .github/workflows/move-content.yml | 2 +- .../move-existing-issues-to-the-correct-repo.yml | 2 +- .github/workflows/move-help-wanted-issues.yml | 2 +- .github/workflows/move-ready-to-merge-pr.yaml | 2 +- .../workflows/move-reopened-issues-to-triage.yaml | 2 +- .github/workflows/needs-sme-stale-check.yaml | 2 +- .github/workflows/needs-sme-workflow.yml | 4 ++-- .github/workflows/no-response.yaml | 2 +- .github/workflows/notify-about-deployment.yml | 2 +- .../notify-when-maintainers-cannot-edit.yaml | 2 +- .github/workflows/orphaned-features-check.yml | 2 +- .github/workflows/orphaned-files-check.yml | 2 +- .github/workflows/os-ready-for-review.yml | 2 +- .github/workflows/package-lock-lint.yml | 2 +- .github/workflows/purge-fastly.yml | 2 +- .../purge-old-deployment-environments.yml | 2 +- .github/workflows/purge-old-workflow-runs.yml | 2 +- .github/workflows/read-pr-doctolib.yml | 15 +++++++++++++++ .github/workflows/ready-for-doc-review.yml | 2 +- .../remove-fr-label-remove-from-fr-v2.yml | 2 +- .github/workflows/repo-sync.yml | 2 +- .github/workflows/site-policy-reminder.yml | 2 +- .github/workflows/site-policy-sync.yml | 2 +- .github/workflows/sme-review-tracking-issue.yml | 2 +- .github/workflows/stale.yml | 2 +- .github/workflows/sync-audit-logs.yml | 2 +- .github/workflows/sync-codeql-cli.yml | 2 +- .github/workflows/sync-graphql.yml | 2 +- .github/workflows/sync-openapi.yml | 2 +- .github/workflows/sync-search-elasticsearch.yml | 4 ++-- .github/workflows/sync-search-pr.yml | 2 +- .github/workflows/sync-secret-scanning.yml | 2 +- .github/workflows/test-changed-content.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/triage-issue-comments.yml | 2 +- .github/workflows/triage-issues.yml | 2 +- .github/workflows/triage-pull-requests.yml | 2 +- .github/workflows/triage-stale-check.yml | 4 ++-- .../workflows/triage-unallowed-contributions.yml | 2 +- .github/workflows/validate-asset-images.yml | 2 +- .../validate-github-github-docs-urls.yml | 2 +- 87 files changed, 104 insertions(+), 89 deletions(-) create mode 100644 .github/workflows/read-pr-doctolib.yml diff --git a/.github/workflows/add-review-template.yml b/.github/workflows/add-review-template.yml index c3490a191965..4a4ce69f8d03 100644 --- a/.github/workflows/add-review-template.yml +++ b/.github/workflows/add-review-template.yml @@ -15,7 +15,7 @@ permissions: jobs: comment-that-approved: name: Add review template - runs-on: ubuntu-latest + runs-on: new-value if: github.event.label.name == 'add-review-template' && github.repository == 'github/docs-internal' steps: diff --git a/.github/workflows/alert-changed-branch-protections.yml b/.github/workflows/alert-changed-branch-protections.yml index d075b0df569f..472f0e9cdfca 100644 --- a/.github/workflows/alert-changed-branch-protections.yml +++ b/.github/workflows/alert-changed-branch-protections.yml @@ -9,7 +9,7 @@ permissions: jobs: check-branch-protections: - runs-on: ubuntu-latest + runs-on: new-value if: github.repository == 'github/docs-internal' strategy: diff --git a/.github/workflows/all-documents.yml b/.github/workflows/all-documents.yml index 2ac5c63bdf1e..a3cbf5e62f8d 100644 --- a/.github/workflows/all-documents.yml +++ b/.github/workflows/all-documents.yml @@ -17,7 +17,7 @@ permissions: jobs: all-documents-script: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/auto-close-dependencies.yml b/.github/workflows/auto-close-dependencies.yml index ce796a8054ad..2807897f48bf 100644 --- a/.github/workflows/auto-close-dependencies.yml +++ b/.github/workflows/auto-close-dependencies.yml @@ -32,7 +32,7 @@ jobs: github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.state == 'open' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Close pull request env: diff --git a/.github/workflows/azure-preview-env-deploy-public.yml b/.github/workflows/azure-preview-env-deploy-public.yml index 1be9f7664868..b7598e721d54 100644 --- a/.github/workflows/azure-preview-env-deploy-public.yml +++ b/.github/workflows/azure-preview-env-deploy-public.yml @@ -36,7 +36,7 @@ concurrency: jobs: build-and-deploy-azure-preview-public: name: Build and deploy Azure preview environment (public) - runs-on: ubuntu-latest + runs-on: new-value if: github.repository == 'github/docs' timeout-minutes: 15 environment: diff --git a/.github/workflows/azure-preview-env-deploy.yml b/.github/workflows/azure-preview-env-deploy.yml index 2b9c192d8d90..fa575e41e1df 100644 --- a/.github/workflows/azure-preview-env-deploy.yml +++ b/.github/workflows/azure-preview-env-deploy.yml @@ -41,7 +41,7 @@ concurrency: jobs: build-and-deploy-azure-preview: name: Build and deploy Azure preview environment - runs-on: ubuntu-latest + runs-on: new-value # Ensure this is actually a pull request and not a merge group # If its a merge group, report success without doing anything # See https://bit.ly/3qB9nZW > If a job in a workflow is skipped due to a conditional, it will report its status as "Success". diff --git a/.github/workflows/azure-preview-env-destroy.yml b/.github/workflows/azure-preview-env-destroy.yml index 382836eb41b4..44bf743819b7 100644 --- a/.github/workflows/azure-preview-env-destroy.yml +++ b/.github/workflows/azure-preview-env-destroy.yml @@ -28,7 +28,7 @@ concurrency: jobs: destroy-azure-preview-env: name: Destroy - runs-on: ubuntu-latest + runs-on: new-value if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' timeout-minutes: 5 env: diff --git a/.github/workflows/azure-prod-build-deploy.yml b/.github/workflows/azure-prod-build-deploy.yml index 254ca141255b..550f2416b298 100644 --- a/.github/workflows/azure-prod-build-deploy.yml +++ b/.github/workflows/azure-prod-build-deploy.yml @@ -23,7 +23,7 @@ concurrency: jobs: azure-prod-build-and-deploy: if: ${{ github.repository == 'github/docs-internal' }} - runs-on: ubuntu-20.04-xl + runs-on: new-value timeout-minutes: 20 environment: name: production diff --git a/.github/workflows/azure-staging-build-deploy.yml b/.github/workflows/azure-staging-build-deploy.yml index c02e8a864c48..81387375a835 100644 --- a/.github/workflows/azure-staging-build-deploy.yml +++ b/.github/workflows/azure-staging-build-deploy.yml @@ -29,7 +29,7 @@ concurrency: jobs: azure-staging-build-and-deploy: if: ${{ github.repository == 'github/docs-internal' }} - runs-on: ubuntu-latest + runs-on: new-value timeout-minutes: 20 environment: # TODO: Update name and url to point to a specific slot for the branch/PR diff --git a/.github/workflows/check-broken-links-github-github.yml b/.github/workflows/check-broken-links-github-github.yml index 04be7a9b5a57..4e9ee701ef7c 100644 --- a/.github/workflows/check-broken-links-github-github.yml +++ b/.github/workflows/check-broken-links-github-github.yml @@ -15,7 +15,7 @@ permissions: jobs: check_github_github_links: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value env: # need to use a token from a user with access to github/github for this step GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }} diff --git a/.github/workflows/check-for-spammy-issues.yml b/.github/workflows/check-for-spammy-issues.yml index 94a42e037c7f..a8ce1ff36da2 100644 --- a/.github/workflows/check-for-spammy-issues.yml +++ b/.github/workflows/check-for-spammy-issues.yml @@ -15,7 +15,7 @@ jobs: spammy-title-check: name: Remove issues with spammy titles if: github.repository == 'github/docs' - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0 with: diff --git a/.github/workflows/close-bad-repo-sync-prs.yml b/.github/workflows/close-bad-repo-sync-prs.yml index 493f259be3db..fec946192d28 100644 --- a/.github/workflows/close-bad-repo-sync-prs.yml +++ b/.github/workflows/close-bad-repo-sync-prs.yml @@ -19,7 +19,7 @@ jobs: close-invalid-repo-sync-pr: if: ${{ github.repository == 'github/docs' && github.event.pull_request.base.ref == 'main' && github.event.pull_request.head.ref == 'repo-sync' }} name: Close if invalid repo-sync PR author - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Close pull request if unwanted uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0 diff --git a/.github/workflows/close-dangling-prs.yml b/.github/workflows/close-dangling-prs.yml index 0524d901ce75..f4f9420abc35 100644 --- a/.github/workflows/close-dangling-prs.yml +++ b/.github/workflows/close-dangling-prs.yml @@ -20,7 +20,7 @@ permissions: jobs: close-dangling-prs: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/close-on-invalid-label.yaml b/.github/workflows/close-on-invalid-label.yaml index 59e98468a833..d88e95084299 100644 --- a/.github/workflows/close-on-invalid-label.yaml +++ b/.github/workflows/close-on-invalid-label.yaml @@ -20,7 +20,7 @@ permissions: jobs: close-on-adding-invalid-label: if: github.repository == 'github/docs' && github.event.label.name == 'invalid' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Close issue diff --git a/.github/workflows/codeowners-content-strategy.yml b/.github/workflows/codeowners-content-strategy.yml index f89f1f85368a..9896b7d9eddf 100644 --- a/.github/workflows/codeowners-content-strategy.yml +++ b/.github/workflows/codeowners-content-strategy.yml @@ -13,7 +13,7 @@ on: jobs: codeowners-content-strategy: if: ${{ github.repository == 'github/docs-internal' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/codeowners-docs-engineering.yml b/.github/workflows/codeowners-docs-engineering.yml index dfa8ba11db7c..03d583d516aa 100644 --- a/.github/workflows/codeowners-docs-engineering.yml +++ b/.github/workflows/codeowners-docs-engineering.yml @@ -33,7 +33,7 @@ jobs: !github.event.pull_request.draft && !contains(github.event.pull_request.labels.*.name, 'engineering') && github.event.pull_request.head.ref != 'repo-sync' }} - runs-on: ubuntu-latest + runs-on: new-value env: GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }} PR: ${{ github.event.pull_request.html_url }} diff --git a/.github/workflows/codeowners-legal.yml b/.github/workflows/codeowners-legal.yml index 7190176c8154..9c5065512a05 100644 --- a/.github/workflows/codeowners-legal.yml +++ b/.github/workflows/codeowners-legal.yml @@ -26,7 +26,7 @@ jobs: ${{ github.repository == 'github/docs-internal' && !github.event.pull_request.draft && github.event.pull_request.head.ref != 'repo-sync' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 67fdbd0d6702..a8905014c612 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -33,7 +33,7 @@ concurrency: jobs: build: if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: github/codeql-action/init@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0 diff --git a/.github/workflows/comment-release-note-info.yml b/.github/workflows/comment-release-note-info.yml index b04126625a65..2a593cd4794f 100644 --- a/.github/workflows/comment-release-note-info.yml +++ b/.github/workflows/comment-release-note-info.yml @@ -18,7 +18,7 @@ jobs: # Do not add this comment on PRs created by the bot during the standard patch release process # or in the github/docs repository if: github.event.pull_request.user.login != 'release-controller[bot]' && github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 with: diff --git a/.github/workflows/confirm-internal-staff-work-in-docs.yml b/.github/workflows/confirm-internal-staff-work-in-docs.yml index 8be28f4a6c76..f1fcd8c6852c 100644 --- a/.github/workflows/confirm-internal-staff-work-in-docs.yml +++ b/.github/workflows/confirm-internal-staff-work-in-docs.yml @@ -19,7 +19,7 @@ permissions: jobs: check-team-membership: - runs-on: ubuntu-latest + runs-on: new-value continue-on-error: true if: github.repository == 'github/docs' && github.actor != 'docs-bot' steps: diff --git a/.github/workflows/content-changes-table-comment.yml b/.github/workflows/content-changes-table-comment.yml index d394b59e7cdf..6fc16c770a30 100644 --- a/.github/workflows/content-changes-table-comment.yml +++ b/.github/workflows/content-changes-table-comment.yml @@ -41,7 +41,7 @@ concurrency: jobs: filterContentDir: if: ${{ github.event.pull_request.user.login != 'docs-bot' && (github.repository == 'github/docs-internal' || github.repository == 'github/docs') }} - runs-on: ubuntu-latest + runs-on: new-value env: PR_NUMBER: ${{ github.event.pull_request.number || inputs.PR_NUMBER }} steps: diff --git a/.github/workflows/content-lint-markdown.yml b/.github/workflows/content-lint-markdown.yml index 80490a9440d7..ebeaa993b199 100644 --- a/.github/workflows/content-lint-markdown.yml +++ b/.github/workflows/content-lint-markdown.yml @@ -14,7 +14,7 @@ permissions: jobs: lint-content: 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: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/content-linter-rules-docs.yml b/.github/workflows/content-linter-rules-docs.yml index eab891e9aa30..c45fa0b9cd63 100644 --- a/.github/workflows/content-linter-rules-docs.yml +++ b/.github/workflows/content-linter-rules-docs.yml @@ -21,7 +21,7 @@ permissions: jobs: check-content-linter-rules-docs: - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: new-value if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' steps: - name: Checkout diff --git a/.github/workflows/copy-api-issue-to-internal.yml b/.github/workflows/copy-api-issue-to-internal.yml index 01713bf0b50e..d240f80a64e0 100644 --- a/.github/workflows/copy-api-issue-to-internal.yml +++ b/.github/workflows/copy-api-issue-to-internal.yml @@ -15,7 +15,7 @@ permissions: jobs: transfer-issue: name: Transfer issue - runs-on: ubuntu-latest + runs-on: new-value if: github.event.label.name == 'fix-internally' && github.repository == 'github/docs' steps: - name: Check if this run was triggered by a member of the docs team diff --git a/.github/workflows/count-translation-corruptions.yml b/.github/workflows/count-translation-corruptions.yml index 56e57e087116..99203b4c37cf 100644 --- a/.github/workflows/count-translation-corruptions.yml +++ b/.github/workflows/count-translation-corruptions.yml @@ -21,7 +21,7 @@ permissions: jobs: count-translation-corruptions: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: new-value steps: - name: Checkout English repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/delete-orphan-translation-files.yml b/.github/workflows/delete-orphan-translation-files.yml index da1e7cec5edb..d253bba5531c 100644 --- a/.github/workflows/delete-orphan-translation-files.yml +++ b/.github/workflows/delete-orphan-translation-files.yml @@ -22,7 +22,7 @@ permissions: jobs: delete-orphan-translation-files: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value strategy: fail-fast: false matrix: diff --git a/.github/workflows/docs-review-collect.yml b/.github/workflows/docs-review-collect.yml index 03d7cf4cdd20..a1569f7bfc32 100644 --- a/.github/workflows/docs-review-collect.yml +++ b/.github/workflows/docs-review-collect.yml @@ -16,7 +16,7 @@ jobs: add-requests-to-board: name: Add requests to board if: ${{ github.repository == 'github/docs-internal' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo content diff --git a/.github/workflows/dont-delete-assets.yml b/.github/workflows/dont-delete-assets.yml index 104cc7c37c77..65eed4126413 100644 --- a/.github/workflows/dont-delete-assets.yml +++ b/.github/workflows/dont-delete-assets.yml @@ -26,7 +26,7 @@ jobs: dont-delete-assets: # It's 'docs-bot' that creates those PR from "Delete orphaned assets" if: github.event.pull_request.user.login != 'docs-bot' && (github.repository == 'github/docs-internal' || github.repository == 'github/docs') - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/dont-delete-features.yml b/.github/workflows/dont-delete-features.yml index cddb604e7ea4..fc736c8f745f 100644 --- a/.github/workflows/dont-delete-features.yml +++ b/.github/workflows/dont-delete-features.yml @@ -26,7 +26,7 @@ jobs: dont-delete-features: # It's 'docs-bot' that creates those PR from "Delete orphaned features" if: github.event.pull_request.user.login != 'docs-bot' && (github.repository == 'github/docs-internal' || github.repository == 'github/docs') - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/enterprise-dates.yml b/.github/workflows/enterprise-dates.yml index a40e7d9b41f9..2669f969d49b 100644 --- a/.github/workflows/enterprise-dates.yml +++ b/.github/workflows/enterprise-dates.yml @@ -21,7 +21,7 @@ jobs: open_enterprise_issue: name: Enterprise date updater if: github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Checkout repository code uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/enterprise-release-issue.yml b/.github/workflows/enterprise-release-issue.yml index 7646b7427953..cef83f22411b 100644 --- a/.github/workflows/enterprise-release-issue.yml +++ b/.github/workflows/enterprise-release-issue.yml @@ -16,7 +16,7 @@ jobs: open_enterprise_issue: name: Open Enterprise issue if: github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Checkout repository code uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/expertise-required-label-message.yml b/.github/workflows/expertise-required-label-message.yml index a3e3613cec43..9cdeecf8e4d9 100644 --- a/.github/workflows/expertise-required-label-message.yml +++ b/.github/workflows/expertise-required-label-message.yml @@ -12,7 +12,7 @@ on: jobs: job: name: Comment on issue with expertise required message - runs-on: ubuntu-latest + runs-on: new-value permissions: issues: write if: github.event.label.name == 'contributor-expertise-required' && github.repository == 'github/docs' diff --git a/.github/workflows/first-responder-v2-prs-collect.yml b/.github/workflows/first-responder-v2-prs-collect.yml index 26f02d2cf108..34262ef30a2a 100644 --- a/.github/workflows/first-responder-v2-prs-collect.yml +++ b/.github/workflows/first-responder-v2-prs-collect.yml @@ -20,7 +20,7 @@ jobs: first-responder-triage-pr: name: Add PR to FR project v2 if: github.repository == 'github/docs-internal' && github.event.pull_request.draft == false && github.actor != 'dependabot[bot]' && github.event.pull_request.head.ref != 'repo-sync' && !contains(github.event.pull_request.labels.*.name, 'skip FR board') - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check if the event originated from a team member diff --git a/.github/workflows/generate-code-scanning-query-lists.yml b/.github/workflows/generate-code-scanning-query-lists.yml index 505550449ffc..400218cfbc3d 100644 --- a/.github/workflows/generate-code-scanning-query-lists.yml +++ b/.github/workflows/generate-code-scanning-query-lists.yml @@ -29,7 +29,7 @@ permissions: jobs: generate-query-lists: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: new-value steps: - name: Checkout repository code uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/headless-tests.yml b/.github/workflows/headless-tests.yml index 29ac7cefe85d..fbcf312a4cbb 100644 --- a/.github/workflows/headless-tests.yml +++ b/.github/workflows/headless-tests.yml @@ -25,7 +25,7 @@ env: jobs: playwright-tests: 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: new-value strategy: # 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. diff --git a/.github/workflows/hubber-contribution-help.yml b/.github/workflows/hubber-contribution-help.yml index 283820d73355..97015ff6c507 100644 --- a/.github/workflows/hubber-contribution-help.yml +++ b/.github/workflows/hubber-contribution-help.yml @@ -19,7 +19,7 @@ permissions: jobs: check-team-membership: if: github.repository == 'github/docs-internal' && github.actor != 'github-openapi-bot' && github.actor != 'docs-bot' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/index-autocomplete-elasticsearch.yml b/.github/workflows/index-autocomplete-elasticsearch.yml index a316812c81e4..62aa4f6bc2fc 100644 --- a/.github/workflows/index-autocomplete-elasticsearch.yml +++ b/.github/workflows/index-autocomplete-elasticsearch.yml @@ -20,7 +20,7 @@ permissions: jobs: index-autocomplete-elasticsearch: if: ${{ github.repository == 'github/docs-internal' }} - runs-on: ubuntu-20.04-xl + runs-on: new-value steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/keep-caches-warm.yml b/.github/workflows/keep-caches-warm.yml index cb1fb5e06c36..b91f5721cf88 100644 --- a/.github/workflows/keep-caches-warm.yml +++ b/.github/workflows/keep-caches-warm.yml @@ -26,7 +26,7 @@ permissions: jobs: keep-caches-warm: 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: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/link-check-daily.yml b/.github/workflows/link-check-daily.yml index 985a458b388f..d7abca762c10 100644 --- a/.github/workflows/link-check-daily.yml +++ b/.github/workflows/link-check-daily.yml @@ -17,7 +17,7 @@ jobs: check_all_english_links: name: Check all links if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: new-value steps: - name: Check that gh CLI is installed run: gh --version diff --git a/.github/workflows/link-check-on-pr.yml b/.github/workflows/link-check-on-pr.yml index a82d0c1f84ce..9db45b8822f1 100644 --- a/.github/workflows/link-check-on-pr.yml +++ b/.github/workflows/link-check-on-pr.yml @@ -22,7 +22,7 @@ concurrency: jobs: check-links: - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: new-value if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' steps: - name: Checkout diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml index 704d4da52093..b098afa3c42f 100644 --- a/.github/workflows/lint-code.yml +++ b/.github/workflows/lint-code.yml @@ -20,7 +20,7 @@ concurrency: jobs: lint-code: 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: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/lint-entire-content-data-markdown.yml b/.github/workflows/lint-entire-content-data-markdown.yml index 9fd363102041..b98181239445 100644 --- a/.github/workflows/lint-entire-content-data-markdown.yml +++ b/.github/workflows/lint-entire-content-data-markdown.yml @@ -17,7 +17,7 @@ jobs: lint-entire-content-data: name: Lint entire content and data directories if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: new-value steps: - name: Check that gh CLI is installed run: gh --version diff --git a/.github/workflows/local-dev.yml b/.github/workflows/local-dev.yml index 885c9f6ea631..d38590d5ed4e 100644 --- a/.github/workflows/local-dev.yml +++ b/.github/workflows/local-dev.yml @@ -16,7 +16,7 @@ permissions: jobs: local-dev: 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: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/main-preview-docker-cache.yml b/.github/workflows/main-preview-docker-cache.yml index db137ac78113..22c13aa61a5c 100644 --- a/.github/workflows/main-preview-docker-cache.yml +++ b/.github/workflows/main-preview-docker-cache.yml @@ -21,7 +21,7 @@ concurrency: jobs: build-and-push-nonprod-cache: if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }} - runs-on: ubuntu-latest + runs-on: new-value timeout-minutes: 15 env: ENABLE_EARLY_ACCESS: ${{ github.repository == 'github/docs-internal' }} diff --git a/.github/workflows/manually-purge-fastly.yml b/.github/workflows/manually-purge-fastly.yml index 448877bc6c9c..6aa8ff79cbf0 100644 --- a/.github/workflows/manually-purge-fastly.yml +++ b/.github/workflows/manually-purge-fastly.yml @@ -12,7 +12,7 @@ permissions: jobs: purge: - runs-on: ubuntu-latest + runs-on: new-value if: github.repository == 'github/docs-internal' diff --git a/.github/workflows/merged-notification.yml b/.github/workflows/merged-notification.yml index 7ffadd51a142..1320b7b21f64 100644 --- a/.github/workflows/merged-notification.yml +++ b/.github/workflows/merged-notification.yml @@ -18,7 +18,7 @@ permissions: jobs: comment: if: github.repository == 'github/docs' && github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch && github.event.pull_request.user.login != 'docs-bot' - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0 with: diff --git a/.github/workflows/move-content.yml b/.github/workflows/move-content.yml index c3104d122f67..5a1839bad509 100644 --- a/.github/workflows/move-content.yml +++ b/.github/workflows/move-content.yml @@ -22,7 +22,7 @@ permissions: jobs: move-content-test: if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/move-existing-issues-to-the-correct-repo.yml b/.github/workflows/move-existing-issues-to-the-correct-repo.yml index 217d595e0ff0..cedf9f0d4078 100644 --- a/.github/workflows/move-existing-issues-to-the-correct-repo.yml +++ b/.github/workflows/move-existing-issues-to-the-correct-repo.yml @@ -12,7 +12,7 @@ permissions: jobs: transfer_issues: - runs-on: ubuntu-latest + runs-on: new-value if: github.repository == 'github/docs-internal' steps: - id: move_to_correct_repo diff --git a/.github/workflows/move-help-wanted-issues.yml b/.github/workflows/move-help-wanted-issues.yml index 7e065b10463a..97400a3894bc 100644 --- a/.github/workflows/move-help-wanted-issues.yml +++ b/.github/workflows/move-help-wanted-issues.yml @@ -19,7 +19,7 @@ jobs: github.repository == 'github/docs' && (github.event.label.name == 'help wanted' || github.event.label.name == 'good first issue') }} - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36 with: diff --git a/.github/workflows/move-ready-to-merge-pr.yaml b/.github/workflows/move-ready-to-merge-pr.yaml index dd2bea65c254..f3a8fa2d73bf 100644 --- a/.github/workflows/move-ready-to-merge-pr.yaml +++ b/.github/workflows/move-ready-to-merge-pr.yaml @@ -21,7 +21,7 @@ jobs: github.repository == 'github/docs' && github.event.label.name == 'ready to merge' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: move PR uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36 diff --git a/.github/workflows/move-reopened-issues-to-triage.yaml b/.github/workflows/move-reopened-issues-to-triage.yaml index 7ef52a6818fc..77ae760a45f1 100644 --- a/.github/workflows/move-reopened-issues-to-triage.yaml +++ b/.github/workflows/move-reopened-issues-to-triage.yaml @@ -16,7 +16,7 @@ permissions: jobs: move-reopened-issue-to-triage: if: github.repository == 'github/docs' - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0 with: diff --git a/.github/workflows/needs-sme-stale-check.yaml b/.github/workflows/needs-sme-stale-check.yaml index 8b9ee19a4f1b..c42e1650dc2b 100644 --- a/.github/workflows/needs-sme-stale-check.yaml +++ b/.github/workflows/needs-sme-stale-check.yaml @@ -16,7 +16,7 @@ permissions: jobs: stale_needs-sme: if: ${{ github.repository == 'github/docs' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 diff --git a/.github/workflows/needs-sme-workflow.yml b/.github/workflows/needs-sme-workflow.yml index 9151f1669f6a..1d0fa50df21d 100644 --- a/.github/workflows/needs-sme-workflow.yml +++ b/.github/workflows/needs-sme-workflow.yml @@ -19,7 +19,7 @@ permissions: jobs: add-issue-comment: if: ${{ github.repository == 'github/docs' && (github.event.label.name == 'needs SME' && github.event_name == 'issues') }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -38,7 +38,7 @@ jobs: add-pr-comment: if: ${{ github.repository == 'github/docs' && (github.event.label.name == 'needs SME' && github.event_name == 'pull_request_target') }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/no-response.yaml b/.github/workflows/no-response.yaml index 6c565f69ae7d..4a864fda39b2 100644 --- a/.github/workflows/no-response.yaml +++ b/.github/workflows/no-response.yaml @@ -21,7 +21,7 @@ permissions: jobs: noResponse: - runs-on: ubuntu-latest + runs-on: new-value if: github.repository == 'github/docs' steps: - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 diff --git a/.github/workflows/notify-about-deployment.yml b/.github/workflows/notify-about-deployment.yml index 1c2b8827c1ee..7326241e358a 100644 --- a/.github/workflows/notify-about-deployment.yml +++ b/.github/workflows/notify-about-deployment.yml @@ -24,7 +24,7 @@ jobs: (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/notify-when-maintainers-cannot-edit.yaml b/.github/workflows/notify-when-maintainers-cannot-edit.yaml index 1f3cee194e68..08e2560c2ba7 100644 --- a/.github/workflows/notify-when-maintainers-cannot-edit.yaml +++ b/.github/workflows/notify-when-maintainers-cannot-edit.yaml @@ -17,7 +17,7 @@ permissions: jobs: notify-when-maintainers-cannot-edit: if: github.repository == 'github/docs' - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0 with: diff --git a/.github/workflows/orphaned-features-check.yml b/.github/workflows/orphaned-features-check.yml index b3254e06ce9e..5d018e42539e 100644 --- a/.github/workflows/orphaned-features-check.yml +++ b/.github/workflows/orphaned-features-check.yml @@ -23,7 +23,7 @@ permissions: jobs: orphaned-features-check: if: ${{ github.repository == 'github/docs-internal' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Checkout English repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/orphaned-files-check.yml b/.github/workflows/orphaned-files-check.yml index 117e57445367..cbd9d936a768 100644 --- a/.github/workflows/orphaned-files-check.yml +++ b/.github/workflows/orphaned-files-check.yml @@ -26,7 +26,7 @@ permissions: jobs: orphaned-assets-check: if: ${{ github.repository == 'github/docs-internal' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Checkout English repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/os-ready-for-review.yml b/.github/workflows/os-ready-for-review.yml index 63b1cc27d62d..5a7680a38030 100644 --- a/.github/workflows/os-ready-for-review.yml +++ b/.github/workflows/os-ready-for-review.yml @@ -17,7 +17,7 @@ jobs: request_doc_review: name: Request a review from the docs-content team if: github.event.label.name == 'waiting for review' && github.repository == 'github/docs' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo content uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/package-lock-lint.yml b/.github/workflows/package-lock-lint.yml index 7ec58aed4e17..c96e34f45605 100644 --- a/.github/workflows/package-lock-lint.yml +++ b/.github/workflows/package-lock-lint.yml @@ -21,7 +21,7 @@ concurrency: jobs: lint: - runs-on: ubuntu-latest + runs-on: new-value if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' steps: - name: Check out repo diff --git a/.github/workflows/purge-fastly.yml b/.github/workflows/purge-fastly.yml index fc16e6c3b392..21bb1f0d66d2 100644 --- a/.github/workflows/purge-fastly.yml +++ b/.github/workflows/purge-fastly.yml @@ -36,7 +36,7 @@ jobs: (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/purge-old-deployment-environments.yml b/.github/workflows/purge-old-deployment-environments.yml index 16d124f8496c..a711400785ed 100644 --- a/.github/workflows/purge-old-deployment-environments.yml +++ b/.github/workflows/purge-old-deployment-environments.yml @@ -18,7 +18,7 @@ permissions: jobs: purge-old-deployment-environments: if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Checkout out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/purge-old-workflow-runs.yml b/.github/workflows/purge-old-workflow-runs.yml index 86d911c7b5af..a8bd44df63ee 100644 --- a/.github/workflows/purge-old-workflow-runs.yml +++ b/.github/workflows/purge-old-workflow-runs.yml @@ -15,7 +15,7 @@ permissions: jobs: purge-old-workflow-runs: if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Checkout out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/read-pr-doctolib.yml b/.github/workflows/read-pr-doctolib.yml new file mode 100644 index 000000000000..fba2277f1422 --- /dev/null +++ b/.github/workflows/read-pr-doctolib.yml @@ -0,0 +1,15 @@ +name: Test PR Github too many workflows +on: + pull_request: + branches: [main] + +jobs: + test: + runs-on: new-value + steps: + - name: Get PR + shell: bash + run: | + gh api "/repos/${{ github.repository }}/pulls/${{ github.event.number }}" + env: + GH_TOKEN: ${{ github.token }} \ No newline at end of file diff --git a/.github/workflows/ready-for-doc-review.yml b/.github/workflows/ready-for-doc-review.yml index 51f5c13d2dcf..e93ff8d352be 100644 --- a/.github/workflows/ready-for-doc-review.yml +++ b/.github/workflows/ready-for-doc-review.yml @@ -18,7 +18,7 @@ jobs: if: >- github.repository_owner == 'github' && github.repository != 'github/docs' && (github.event.label.name == 'ready-for-doc-review' || github.event.requested_team.name == 'docs-content' || github.event.requested_team.name == 'docs-reviewers') - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo content uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/remove-fr-label-remove-from-fr-v2.yml b/.github/workflows/remove-fr-label-remove-from-fr-v2.yml index 0b5db89f4d0a..c6cf24ed6a63 100644 --- a/.github/workflows/remove-fr-label-remove-from-fr-v2.yml +++ b/.github/workflows/remove-fr-label-remove-from-fr-v2.yml @@ -21,7 +21,7 @@ permissions: jobs: label-removed: name: Remove from FR v2 project - runs-on: ubuntu-latest + runs-on: new-value if: | (github.event.label.name == 'docs-content-fr') && (github.repository == 'github/docs-internal') diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index d4f549a1f7f1..c2d30f701138 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -20,7 +20,7 @@ jobs: repo-sync: if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' name: Repo Sync - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/site-policy-reminder.yml b/.github/workflows/site-policy-reminder.yml index 2a3a50cb67fe..41b5f675f802 100644 --- a/.github/workflows/site-policy-reminder.yml +++ b/.github/workflows/site-policy-reminder.yml @@ -17,7 +17,7 @@ jobs: if: >- github.event.label.name == 'Site Policy' && github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 env: diff --git a/.github/workflows/site-policy-sync.yml b/.github/workflows/site-policy-sync.yml index 4c827a098ff5..246e68f694bd 100644 --- a/.github/workflows/site-policy-sync.yml +++ b/.github/workflows/site-policy-sync.yml @@ -23,7 +23,7 @@ jobs: sync: name: Get the latest docs if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.repository == 'github/docs-internal') - runs-on: ubuntu-latest + runs-on: new-value steps: - name: checkout docs-internal uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/sme-review-tracking-issue.yml b/.github/workflows/sme-review-tracking-issue.yml index 51ca9edec8e3..ac44d738066a 100644 --- a/.github/workflows/sme-review-tracking-issue.yml +++ b/.github/workflows/sme-review-tracking-issue.yml @@ -18,7 +18,7 @@ permissions: jobs: create-sme-review-tracking-issue: - runs-on: ubuntu-latest + runs-on: new-value if: github.repository == 'github/docs' && github.event.label.name == 'needs SME' steps: - id: create-issue diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 0414f70e22bd..cb7ecf82dc00 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -16,7 +16,7 @@ permissions: jobs: stale: if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 with: diff --git a/.github/workflows/sync-audit-logs.yml b/.github/workflows/sync-audit-logs.yml index f0226617d16b..e1cfaf1f688f 100644 --- a/.github/workflows/sync-audit-logs.yml +++ b/.github/workflows/sync-audit-logs.yml @@ -21,7 +21,7 @@ concurrency: jobs: update-audit-log-files: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/sync-codeql-cli.yml b/.github/workflows/sync-codeql-cli.yml index e42d6207406c..7edb7cf920e5 100644 --- a/.github/workflows/sync-codeql-cli.yml +++ b/.github/workflows/sync-codeql-cli.yml @@ -27,7 +27,7 @@ concurrency: jobs: generate-codeql-files: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Checkout repository code uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/sync-graphql.yml b/.github/workflows/sync-graphql.yml index ca2e7b5e9147..c88deb46125b 100644 --- a/.github/workflows/sync-graphql.yml +++ b/.github/workflows/sync-graphql.yml @@ -16,7 +16,7 @@ permissions: jobs: update_graphql_files: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/sync-openapi.yml b/.github/workflows/sync-openapi.yml index 7e28c4294484..3d8d3aef542b 100644 --- a/.github/workflows/sync-openapi.yml +++ b/.github/workflows/sync-openapi.yml @@ -27,7 +27,7 @@ concurrency: jobs: generate-decorated-files: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: new-value steps: - name: Checkout repository code uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/sync-search-elasticsearch.yml b/.github/workflows/sync-search-elasticsearch.yml index 4ca84e08993f..72e754c9e760 100644 --- a/.github/workflows/sync-search-elasticsearch.yml +++ b/.github/workflows/sync-search-elasticsearch.yml @@ -41,7 +41,7 @@ env: jobs: figureOutMatrix: if: ${{ github.repository == 'github/docs-internal' }} - runs-on: ubuntu-latest + runs-on: new-value outputs: matrix: ${{ steps.set-matrix.outputs.result }} steps: @@ -98,7 +98,7 @@ jobs: needs: figureOutMatrix name: Update indexes if: ${{ github.repository == 'github/docs-internal' && needs.figureOutMatrix.outputs.matrix != '[]' }} - runs-on: ubuntu-20.04-xl + runs-on: new-value strategy: fail-fast: false # When it's only English (i.e. a simple array of ['en']), this value diff --git a/.github/workflows/sync-search-pr.yml b/.github/workflows/sync-search-pr.yml index f7d504a77f6f..4825529a4b10 100644 --- a/.github/workflows/sync-search-pr.yml +++ b/.github/workflows/sync-search-pr.yml @@ -36,7 +36,7 @@ env: jobs: dryRunElasticsearchIndexes: - runs-on: ubuntu-20.04-xl + runs-on: new-value if: github.repository == 'github/docs-internal' steps: - name: Check out repo diff --git a/.github/workflows/sync-secret-scanning.yml b/.github/workflows/sync-secret-scanning.yml index 8a1ef68e338a..ea097f202aca 100644 --- a/.github/workflows/sync-secret-scanning.yml +++ b/.github/workflows/sync-secret-scanning.yml @@ -21,7 +21,7 @@ concurrency: jobs: update-secret-scanning-file: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/test-changed-content.yml b/.github/workflows/test-changed-content.yml index dab8e7971f1c..b92071f13399 100644 --- a/.github/workflows/test-changed-content.yml +++ b/.github/workflows/test-changed-content.yml @@ -20,7 +20,7 @@ permissions: jobs: test-changed-content: - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: new-value if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }} steps: # Each of these ifs needs to be repeated at each step to make sure the required check still runs diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5bd18cc38354..fb1e65f12455 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: # 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'] }} + runs-on: new-value timeout-minutes: 60 strategy: fail-fast: false diff --git a/.github/workflows/triage-issue-comments.yml b/.github/workflows/triage-issue-comments.yml index 1e80dc69f5ed..7bdced0ecf86 100644 --- a/.github/workflows/triage-issue-comments.yml +++ b/.github/workflows/triage-issue-comments.yml @@ -16,7 +16,7 @@ permissions: jobs: triage-issue-comments: if: ${{ github.repository == 'github/docs' && !github.event.issue.pull_request }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check if the event originated from a team member diff --git a/.github/workflows/triage-issues.yml b/.github/workflows/triage-issues.yml index 4db152803e97..84df20182ea0 100644 --- a/.github/workflows/triage-issues.yml +++ b/.github/workflows/triage-issues.yml @@ -17,7 +17,7 @@ permissions: jobs: triage_issues: if: ${{ github.repository == 'github/docs' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo diff --git a/.github/workflows/triage-pull-requests.yml b/.github/workflows/triage-pull-requests.yml index 9b318ab2160e..93c6644d5200 100644 --- a/.github/workflows/triage-pull-requests.yml +++ b/.github/workflows/triage-pull-requests.yml @@ -19,7 +19,7 @@ permissions: jobs: triage_pulls: if: ${{ github.repository == 'github/docs' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo diff --git a/.github/workflows/triage-stale-check.yml b/.github/workflows/triage-stale-check.yml index ca6954e2887c..7b1fcb0c611d 100644 --- a/.github/workflows/triage-stale-check.yml +++ b/.github/workflows/triage-stale-check.yml @@ -16,7 +16,7 @@ permissions: jobs: stale_contributor: if: github.repository == 'github/docs' - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 @@ -42,7 +42,7 @@ jobs: slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }} stale_staff: if: github.repository == 'github/docs' - runs-on: ubuntu-latest + runs-on: new-value steps: - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 with: diff --git a/.github/workflows/triage-unallowed-contributions.yml b/.github/workflows/triage-unallowed-contributions.yml index a84ac2767fa0..35180c7363cc 100644 --- a/.github/workflows/triage-unallowed-contributions.yml +++ b/.github/workflows/triage-unallowed-contributions.yml @@ -20,7 +20,7 @@ jobs: github.event.pull_request.user.login != 'docs-bot' && github.event.pull_request.user.login != 'dependabot[bot]' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/validate-asset-images.yml b/.github/workflows/validate-asset-images.yml index 971fef3d0a82..998b7563b916 100644 --- a/.github/workflows/validate-asset-images.yml +++ b/.github/workflows/validate-asset-images.yml @@ -16,7 +16,7 @@ permissions: jobs: validate-asset-images: if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }} - runs-on: ubuntu-latest + runs-on: new-value steps: - name: Check out repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/validate-github-github-docs-urls.yml b/.github/workflows/validate-github-github-docs-urls.yml index e93d9f803660..b98ea69e899c 100644 --- a/.github/workflows/validate-github-github-docs-urls.yml +++ b/.github/workflows/validate-github-github-docs-urls.yml @@ -30,7 +30,7 @@ jobs: validate_github_github_docs_urls: name: Validate github/github docs URLs if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: new-value steps: - name: Check out repo's default branch uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1