Skip to content

Commit 50a1831

Browse files
committed
x
1 parent 3f3ee9a commit 50a1831

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/shell-tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ jobs:
168168
# Set OPENNLP_HOME dynamically in the environment
169169
$OPENNLP_HOME_PATH = "$Destination\$EXTRACTED_DIR"
170170
Write-Host "OPENNLP_HOME=$OPENNLP_HOME_PATH" # Debugging
171+
172+
# Ensure OPENNLP_HOME is recognized in the current session
173+
$env:OPENNLP_HOME = $OPENNLP_HOME_PATH
174+
$env:PATH = "$env:OPENNLP_HOME\bin;$env:PATH"
171175
172-
# Set the environment variable for future steps
173-
echo "OPENNLP_HOME=$OPENNLP_HOME_PATH" >> $GITHUB_ENV
174-
echo "$OPENNLP_HOME_PATH\bin" >> $GITHUB_PATH
175-
176176
Invoke-Pester -Script "./opennlp-distr/src/test/ps/test_opennlp.Tests.ps1" -Output Detailed
177177
shell: pwsh
178178
env:

0 commit comments

Comments
 (0)