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

rzo1 pushed a commit to branch OPENNLP-1688
in repository https://gitbox.apache.org/repos/asf/opennlp.git


The following commit(s) were added to refs/heads/OPENNLP-1688 by this push:
     new 995060e8 x
995060e8 is described below

commit 995060e8dce75a4f54f07c2169acb75a64ce07f2
Author: Richard Zowalla <[email protected]>
AuthorDate: Fri Jan 17 13:10:56 2025 +0100

    x
---
 .github/workflows/shell-tests.yml | 46 +++++++++++++++++++--------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/.github/workflows/shell-tests.yml 
b/.github/workflows/shell-tests.yml
index b7b10ac1..ddcfdb72 100644
--- a/.github/workflows/shell-tests.yml
+++ b/.github/workflows/shell-tests.yml
@@ -151,29 +151,29 @@ jobs:
         run: |
       - name: Find and Extract OpenNLP Distribution
         run: |
-        # Find the first non-src .tar.gz file in the target directory
-        $TAR_FILE = Get-ChildItem -Path opennlp-distr/target -Filter 
"*.tar.gz" | Where-Object { $_.Name -notlike "*-src*" } | Select-Object -First 1
-    
-        # Ensure we found a file
-        if (-not $TAR_FILE) {
-          Write-Error "Error: No matching tar.gz file found in 
opennlp-distr/target"
-          exit 1
-        }
-
-        # Extract the tar.gz file to the user profile directory
-        $Destination = "$env:USERPROFILE"
-        tar -xzf $TAR_FILE.FullName -C $Destination
-    
-        # Get the directory name of the extracted content (excluding the tar 
path)
-        $EXTRACTED_DIR = (tar -tf $TAR_FILE.FullName | Select-Object -First 
1).Split('/')[0]
-    
-        # Set OPENNLP_HOME dynamically in the environment
-        $OPENNLP_HOME_PATH = "$env:USERPROFILE\$EXTRACTED_DIR"
-        Write-Host "OPENNLP_HOME=$OPENNLP_HOME_PATH"  # Debugging
-    
-        # Set the environment variable for future steps
-        echo "OPENNLP_HOME=$OPENNLP_HOME_PATH" >> $GITHUB_ENV
-        echo "$OPENNLP_HOME_PATH\bin" >> $GITHUB_PATH
+          # Find the first non-src .tar.gz file in the target directory
+          $TAR_FILE = Get-ChildItem -Path opennlp-distr/target -Filter 
"*.tar.gz" | Where-Object { $_.Name -notlike "*-src*" } | Select-Object -First 1
+      
+          # Ensure we found a file
+          if (-not $TAR_FILE) {
+            Write-Error "Error: No matching tar.gz file found in 
opennlp-distr/target"
+            exit 1
+          }
+  
+          # Extract the tar.gz file to the user profile directory
+          $Destination = "$env:USERPROFILE"
+          tar -xzf $TAR_FILE.FullName -C $Destination
+      
+          # Get the directory name of the extracted content (excluding the tar 
path)
+          $EXTRACTED_DIR = (tar -tf $TAR_FILE.FullName | Select-Object -First 
1).Split('/')[0]
+      
+          # Set OPENNLP_HOME dynamically in the environment
+          $OPENNLP_HOME_PATH = "$env:USERPROFILE\$EXTRACTED_DIR"
+          Write-Host "OPENNLP_HOME=$OPENNLP_HOME_PATH"  # Debugging
+      
+          # Set the environment variable for future steps
+          echo "OPENNLP_HOME=$OPENNLP_HOME_PATH" >> $GITHUB_ENV
+          echo "$OPENNLP_HOME_PATH\bin" >> $GITHUB_PATH
 
       - name: Verify Extraction
         run: |

Reply via email to