From 18efb338f41dd16ded1a84ac0b17129137d108ae Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Wed, 11 Nov 2026 19:33:01 -0500 Subject: [PATCH 1/3] Use the image with VS dev 18 This image is needed to access the latest version of Visual Studio (dev 18) --- .github/workflows/snippets5000.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/snippets5000.yml b/.github/workflows/snippets5000.yml index 3f55f9aa49c9f..c35c0dac569a2 100644 --- a/.github/workflows/snippets5000.yml +++ b/.github/workflows/snippets5000.yml @@ -24,7 +24,7 @@ permissions: jobs: snippets-build: - runs-on: windows-2022 + runs-on: windows-11-arm steps: # Checkout the repository for the PR From cf455b93043d93a38d080bd74159ead28fd73866 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Wed, 11 Nov 2026 19:47:38 -0500 Subject: [PATCH 2/3] update the manual pull request number --- .github/workflows/snippets5000.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/snippets5000.yml b/.github/workflows/snippets5000.yml index c35c0dac569a2..15cc3f8fc455d 100644 --- a/.github/workflows/snippets5000.yml +++ b/.github/workflows/snippets5000.yml @@ -12,6 +12,9 @@ on: description: 'The reason for running the workflow' required: true default: 'Manual run' + pull: + description: "The pull request number to manually test" + required: true env: DOTNET_VERSION: '11.0.*' @@ -54,14 +57,14 @@ jobs: run: | git clone --depth 1 https://github.com/dotnet/docs-tools - # Run snippets 5000 + # Run snippets 5000 for the pull request, either from the triggering event or the manual input. - name: Run snippets 5000 for PR env: GitHubKey: ${{ secrets.GITHUB_TOKEN }} ExtensionsCodeTriggers: .cs;.vb;.fs;.xaml;.razor;.cshtml;.vbhtml;.sln;.csproj;.fsproj;.vbproj;.proj ExtensionsProjects: .sln;.csproj;.fsproj;.vbproj;.proj run: | - dotnet run --project docs-tools/snippets5000/Snippets5000/Snippets5000.csproj -- --sourcepath "${{ github.workspace }}" --pullrequest ${{ github.event.number }} --owner ${{ github.repository_owner }} --repo ${{ github.event.repository.name }} + dotnet run --project docs-tools/snippets5000/Snippets5000/Snippets5000.csproj -- --sourcepath "${{ github.workspace }}" --pullrequest ${{ github.event.number || inputs.pull }} --owner ${{ github.repository_owner }} --repo ${{ github.event.repository.name }} - name: Upload snippets diagnostics if: ${{ always() }} From c9738a2e41bc25325811d613192159a07b935e77 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Wed, 11 Nov 2026 19:49:50 -0500 Subject: [PATCH 3/3] I hate YAML --- .github/workflows/snippets5000.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/snippets5000.yml b/.github/workflows/snippets5000.yml index 15cc3f8fc455d..5729d285d14e4 100644 --- a/.github/workflows/snippets5000.yml +++ b/.github/workflows/snippets5000.yml @@ -12,7 +12,7 @@ on: description: 'The reason for running the workflow' required: true default: 'Manual run' - pull: + pull: description: "The pull request number to manually test" required: true