This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch fix/apidocs-automation
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 0e7c8c841687bdabf179969c3b91c35ec3e3700b
Author: Shad Storhaug <[email protected]>
AuthorDate: Thu Oct 24 09:52:40 2024 +0700

    Lucene-Net-Documentation.yml: Install docfx as a global tool and set the 
path
---
 .github/workflows/Lucene-Net-Documentation.yml | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/Lucene-Net-Documentation.yml 
b/.github/workflows/Lucene-Net-Documentation.yml
index 197820af3..8df59d4d2 100644
--- a/.github/workflows/Lucene-Net-Documentation.yml
+++ b/.github/workflows/Lucene-Net-Documentation.yml
@@ -128,13 +128,15 @@ jobs:
         with:
           dotnet-version: '8.0.x'
 
-      - name: Check Local Tools
-        run: dotnet tool list --local
+      - name: Install docfx globally
+        run: dotnet tool install --global docfx --version 2.77.0
         shell: powershell
 
-      - name: Check Global Tools
-        run: dotnet tool list --global
-        shell: powershell
+      - name: Set up PATH for global tools
+        shell: pwsh
+        run: |
+          $env:PATH += ";$HOME/.dotnet/tools"
+          Write-Host "Updated PATH: $env:PATH"
 
       - name: Build docs
         run: ./main-repo/websites/apidocs/docs.ps1 -Clean -LuceneNetVersion 
${{ env.RELEASE_VERSION }}

Reply via email to