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


The following commit(s) were added to refs/heads/fix/apidocs-automation by this 
push:
     new 697bb2f2e Lucene-Net-Documentation.yml: Fixed code to update GHA path 
with docfx
697bb2f2e is described below

commit 697bb2f2ef77b97cd0b28f1c8ba8a4eb16534920
Author: Shad Storhaug <[email protected]>
AuthorDate: Thu Oct 24 10:23:41 2024 +0700

    Lucene-Net-Documentation.yml: Fixed code to update GHA path with docfx
---
 .github/workflows/Lucene-Net-Documentation.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/Lucene-Net-Documentation.yml 
b/.github/workflows/Lucene-Net-Documentation.yml
index 8df59d4d2..6bd71f22d 100644
--- a/.github/workflows/Lucene-Net-Documentation.yml
+++ b/.github/workflows/Lucene-Net-Documentation.yml
@@ -133,10 +133,9 @@ jobs:
         shell: powershell
 
       - name: Set up PATH for global tools
-        shell: pwsh
+        shell: powershell
         run: |
-          $env:PATH += ";$HOME/.dotnet/tools"
-          Write-Host "Updated PATH: $env:PATH"
+          echo "$HOME/.dotnet/tools" | Out-File -FilePath $env:GITHUB_PATH 
-Encoding utf8 -Append
 
       - name: Build docs
         run: ./main-repo/websites/apidocs/docs.ps1 -Clean -LuceneNetVersion 
${{ env.RELEASE_VERSION }}

Reply via email to